emacs perl-mode:格式键中的哈希缩进?

时间:2015-03-19 21:38:13

标签: perl emacs

emacs24对我来说有一个奇怪的错误(使用perl-mode), 当我输入包含键'格式'的哈希时, 所有后续行的缩进符。

示例:

my $hash = {
   foo => 'bar',
   format => 'some',
};

sub some_code {
print "will not indent :(";
};

现在点击“tab”什么都不做,自动缩进(缩进区域)也没有。

为什么会出现这种情况以及如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

在我的测试中,Emacs-23和Emacs-24都处理得很好,所以我认为问题与~/.emacs中的自定义有关。

使用emacs -Q尝试。