Then I simply mark a region and press F5 to indent it nicely (according to my settings in the /home/foo/.perltidyrc file.(defun perltidy () "Run perltidy on the current region or buffer." (interactive) (save-excursion (unless mark-active (mark-defun)) (shell-command-on-region (point) (mark) "perltidy --profile=/home/ +foo/.perltidyrc -q" nil t))) (global-set-key [(f5)] 'perltidy)
In reply to Re: indent for Perl?
by andreas1234567
in thread indent for Perl?
by dbanas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |