Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: combining emacs' cperl-mode formatting with Perltidy

by duelafn (Parson)
on Oct 20, 2014 at 13:14 UTC ( [id://1104431]=note: print w/replies, xml ) Need Help??


in reply to Re^2: combining emacs' cperl-mode formatting with Perltidy
in thread combining emacs' cperl-mode formatting with Perltidy

Will they do that much fighting even if they are configured differently? I don't think cperl-mode changes indentation just by typing and certainly not anything further than the current line... at least I don't see anything in my cperl config that disables any such things. cperl is happy to allow me to edit a line or comment that it thinks in not properly aligned without changing the alignment. (that's actually a thing that drives me crazy in some other modes - they change the alignment when I type a paren or semi-colon.)

Good Day,
    Dean

  • Comment on Re^3: combining emacs' cperl-mode formatting with Perltidy

Replies are listed 'Best First'.
Re^4: combining emacs' cperl-mode formatting with Perltidy
by LanX (Saint) on Oct 20, 2014 at 13:22 UTC
    As I said, there is an inline option for comment start (which might be a localized global variable)

    You can set up indent on return.

    You have indent region which is hooked in my config to closed curlies.

    You can set up the bracing style, like for if/else.

    So while the default is quite passive, there are many interactive features.

    (all options named from memory and most certainly not accurate)

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-04-18 06:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found