在Emacs 24.4中,默认的缩进行为已被更改 - 现在新的行自动缩进。从release notes: *** `electric-indent-mode' is now enabled by default.
Typing RET reindents the current line and indents the new line.
`C-j' inserts a newline but
我对Lisp和Emacs都是全新的。在Emacs中,例如在Java中进行编码时,我希望能够键入“{”,然后点击“ENTER”,并且为嵌套在大括号中的任何内容准备好下一行。举例来说,如果我有以下行: public void method()
,我输入“{”然后回车,我应该得到这样的: public void method() {
// indentation applied, no a