in reply to Re: CPerl-Mode Indentation
in thread CPerl-Mode Indentation
Indentation is an integral part and main advantage of emacs editing, where ever you are in the code, just hitting TAB is enough to perfectly interactively indent the whole line ... I even bound it to RET to get it automatically when ending lines.
It's not only cosmetics, you immediately get a feedback for multiline syntax errors (eg forgotten ";") when the indentation is wrong! So each time you insert an new line in a hash the perltity indentation will be broken again by emacs! That means you will have to mark the whole structure again and pipe it through perltidy.
To make this more comfortable you will have to write a elisp-key-macro bound to TAB which automatically detects to be within a structure, to ignore normal emacs indentation, select the structure and to pipe it through perltidy...
While this is perfectly possible, it's easier now to extend cperl-mode, it has a more natural UI and has a much better return of investment.
I have it on my TODO list, but regarding the number of open projects it has only low priority. :)
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: CPerl-Mode Indentation
by bluescreen (Friar) on Jun 15, 2010 at 12:27 UTC | |
by azbok (Initiate) on Jun 15, 2010 at 16:31 UTC |