in reply to CPerl-Mode Indentation
Originally from Specific Indentation request for perl in Emacs and then I modified it a little bit, so before checking in my code I run it thru perl tidy by pressing Ctrl+xt(global-set-key "\C-xt" 'perltidy-region) (defun perltidy-region () "Run perltidy on the current region or the whole buffer." (interactive) (save-excursion (let ((beg (if mark-active (point) (point-min))) (end (if mark-active (mark) (point-max)))) (shell-command-on-region beg end "perltidy -q" nil t))))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CPerl-Mode Indentation
by LanX (Saint) on Jun 15, 2010 at 10:39 UTC | |
by bluescreen (Friar) on Jun 15, 2010 at 12:27 UTC | |
by azbok (Initiate) on Jun 15, 2010 at 16:31 UTC |