如何在Emacs中设置cperl模式,以便括号后的缩进,例如
has 'name' => (
is => 'rw',
isa => 'Str',
required => 1,
);
(默认缩进)变得更像是在the Moose manual中看到的,例如
has 'password' => (
is => 'rw',
isa => 'Str',
);
答案 0 :(得分:7)
我在the Emacs Wiki找到了答案。将以下内容添加到.emacs:
(custom-set-variables
'(cperl-indent-parens-as-block t))