(defun perltidy-region () "Run perltidy on the current region." (interactive) (save-excursion (shell-command-on-region (point) (mark) "perltidy -q" nil t))) (global-set-key "\M-t" `perltidy-region)
Then I just mark a region and hit alt-t to pretty it up. I also have a binding to allow me to perltidy the whole file.
-sam
In reply to Re: Emacs cperl-mode: how to line up middles of rows?
by samtregar
in thread Emacs cperl-mode: how to line up middles of rows?
by Roscoe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |