Possible Duplicate:
Make Emacs less aggressive about indentation
每当我在 Emacs 的 C++ 模式中键入左括号或右括号时,它都会缩进整个表达式。我不希望这种情况发生。我怎样才能关闭这个功能?我可以关闭所有自动缩进功能吗?
最佳答案
尝试:(c-toggle-electric-state -1)
来自文档:
c-toggle-electric-state is an interactive compiled Lisp function in `cc-cmds.el'.
(c-toggle-electric-state &optional ARG)
Toggle the electric indentation feature. Optional numeric ARG, if supplied, turns on electric indentation when positive, turns it off when negative, and just toggles it when zero or left out.
关于c++ - Emacs C++ 模式缩进,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11566600/