我希望全局启用空白模式。我在我的.emacs试过这样:Emacs:全局启用空白模式
(require 'whitespace)
(setq-default whitespace-style '(face trailing lines empty indentation::space))
(setq-default whitespace-line-column 80)
(setq global-whitespace-mode 1)
(whitespace-mode 1)
但都没有成功。我能够通过M + X空白模式来启用它,但我想它在全球范围内启用它...有什么建议?我正在使用GNU Emacs 23.3.1。
注意'空格mode'和'全球空格mode'是不同的次要模式。前者是缓冲区局部,后者不是。如果为给定缓冲区启用了缓冲区本地模式,则全局模式不会对该缓冲区产生任何影响。 – phils 2011-06-17 08:16:58