I'm interested to know what people think is a good default indentation for the following input:
my @headings = ( {key => 'k', name => 'Kanji', class => 'kanji'}, {key => 'skip', name => 'SKIP', class => 'skip-code'}, {key => 'co', name => 'Suggestion', class => 'skip-code'}, {key => 'disc', name => 'Discussion'}, );
Emacs' cperl-mode in its default setting (as run with emacs -Q) indents the above as follows:
my @headings = ( { key => 'k', name => 'Kanji', class => 'kanji'}, { key => 'skip', name => 'SKIP', class => 'skip-code'}, { key => 'co', name => 'Suggestion', class => 'skip-code'}, { key => 'disc', name => 'Discussion'}, );
I think most people would agree that this is a little eccentric. I'm trying to set up a better default, but what indentations do people actually use for these types of things?
In reply to How would you indent this? by no longer just digit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |