Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Formatting Perl code with Emacs (updated)

by LanX (Chancellor)
on Nov 06, 2013 at 13:53 UTC ( #1061432=note: print w/replies, xml ) Need Help??


in reply to Formatting Perl code with Emacs

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)

update

An easy workaround is to put the opening bracket into the next line...

Sorry can't demonstrate while on mobile...

update

See also http://www.emacswiki.org/emacs/IndentingPerl

footnotes
) see here CPerl-Mode Indentation and here
  • Comment on Re: Formatting Perl code with Emacs (updated)

Replies are listed 'Best First'.
Re^2: Formatting Perl code with Emacs (updated)
by isntvoid (Novice) on Nov 07, 2013 at 08:17 UTC

    Thank you!

    I've read Indenting Perl later and tried to customize Emacs with cperl-* variables, but it doesn't help.

    So, I have to continue using Vim for coding, because I need a tool, not the master...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061432]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2016-08-31 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (426 votes). Check out past polls.