在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