【发布时间】:2015-06-25 09:36:56
【问题描述】:
我正在尝试启用空白模式,但它似乎对我不起作用。
我已将 whitespace.el 文件添加到我的 .emacs.d/ 目录中。 我在 .emacs 文件中添加了以下几行:
(add-hook 'before-save-hook 'whitespace-cleanup)
(add-hook 'before-save-hook (lambda() (delete-trailing-whitespace)))
(require 'whitespace)
我在 whitespace.el 文件中做了以下操作:
M-x byte-compile-file <path to whitespace.el>
我尝试从 emacs 中的任何随机文本(例如:test.c)执行以下命令:
M-x whitespace-toggle-options RET
但我只收到一条消息说 [不匹配]
我错过了什么?
另外,每次我使用 emacs 时,我是否必须输入一个命令来启用空白模式?
【问题讨论】:
标签: emacs whitespace