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 ☆☆☆☆ :)