in reply to Customizing Emacs for Perl Best Practices

First, I assume that you are using CPerl instead of the obsolete perl-mode. If not, put this in your .emacs file to load it automatically:

;; Use cperl-mode instead of the default perl-mode (add-to-list 'auto-mode-alist '("\\.\\([pP]\\([Llm]\\|[oO][dD]\\)\\|al +\\)\\'" . cperl-mode)) (add-to-list 'interpreter-mode-alist '("perl" . cperl-mode)) (add-to-list 'interpreter-mode-alist '("perl5" . cperl-mode)) (add-to-list 'interpreter-mode-alist '("miniperl" . cperl-mode))

Then you can do

M-x customize-group RET cperl-indentation-details RET
I don't seem to find a method in in cc-align.el to actually align the arglist anywhere except under the opening parenthesis.

I'm not familiar with Damian's recommendations but I suggest you check cperl-indent-parens-as-block, it might work at least as a compromise.

Replies are listed 'Best First'.
Re^2: Customizing Emacs for Perl Best Practices
by ait (Hermit) on Nov 13, 2007 at 14:25 UTC
    Thank you for your reply.

    I was breaking my head with cperl-indent-parens-as-block until I discovered that the cperl-mode.el distributed with Emacs 21 on Debian Etch is *VERY* out dated.
    I downloaded the latest 5.x version from here and it's all working perfectly now. BTW, I have update my original node for a little how-to on the subject.