Instead of worrying too much about indentation while I'm coding, I just get it down and then use Perltidy to clean up the details.
You can use something like this to tidy up your Perl code from within Emacs:
(global-set-key "\C-xt" 'perltidy-region) (setq shell-command-default-error-buffer "perltidy-errors") (defun perltidy-region () "Run the perltidy parser on the current region." (interactive) (let ((start (mark)) (end (point)) (command "perltidy")) (shell-command-on-region start end command t t shell-command-d +efault-error-buffer)))
Put this in your ~/.emacs file, select the region you want to clean up and type C-xt or M-x perltidy-region.
In reply to Re: Specific Indentation request for perl in Emacs
by rhythmicus
in thread Specific Indentation request for perl in Emacs
by Yoyoson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |