good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Formatting Perl code with Emacs (updated)by LanX (Saint) |
on Nov 06, 2013 at 13:53 UTC ( [id://1061432]=note: print w/replies, xml ) | Need Help?? |
That's a long known issue which can only be solved by patching cperl-mode. I identified the necessary changes in a discussion in "gnu emacs help" some years ago and Ilya welcomed any patches...¹ Don't know if recent versions already solved this... HTH ! =)
Cheers Rolf ( addicted to the Perl Programming Language)
updateAn easy workaround is to put the opening bracket into the next line... Sorry can't demonstrate while on mobile...
updateSee also http://www.emacswiki.org/emacs/IndentingPerl
footnotes¹) see here CPerl-Mode Indentation and here
In Section
Seekers of Perl Wisdom
|
|