in reply to Specific Indentation request for perl in Emacs
If you really want to do that, and I strongly recommend that you don't, then add the following to your .emacs
You can also customize the cperl-indent-parens-as-block variable so as not to confuse customize later. Why do I recommend you don't do that? Because indenting parenthesized expressions the same way as a block can create confusion in the reader. If you've got a problem with the right margin encroaching, you can always reindent as follows:(setq cperl-indent-parens-as-block t)
And what do you know? You claw back some vertical space, which is never a bad thing.my $var = $new->function( arg1 => 1, );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Specific Indentation request for perl in Emacs
by aufflick (Deacon) on Jan 13, 2005 at 03:04 UTC | |
Re^2: Specific Indentation request for perl in Emacs
by Yoyoson (Novice) on Aug 18, 2004 at 15:09 UTC | |
by Yoyoson (Novice) on Aug 18, 2004 at 15:40 UTC | |
by metaperl (Curate) on Jan 13, 2005 at 18:15 UTC |
In Section
Seekers of Perl Wisdom