How do I adjust cperl mode indentation of qw//?
Following on from this question, here's another bugbear.
I开发者_高级运维 am getting
my @browsers = qw/
Firefox
MSIE
/;
but I want
my @browsers = qw/
Firefox
MSIE
/;
What setting in cperl mode in Emacs might I use to achieve that?
There isn't one. x// is handled as a special case, and the information about the indent of the line that starts the statement is not available:
http://github.com/jrockway/cperl-mode/blob/mx-declare/cperl-mode.el#L3074
This can be fixed with a bit of munging in cperl-sniff-for-indent
and cperl-calculate-indent
. Patch welcome!
精彩评论