适用于OSX的Aquamacs 2.4旨在使用Preferences.el
和customizations.el
代替~/.emacs
Preferences.el
(require 'whitespace)
;; This is for files previously created and then opened with Aquamacs.
(global-whitespace-mode t)
;; This is needed for new files and/or the scratch buffer.
;; Add additional hooks for each mode desired.
(add-hook 'text-mode-hook
(function (lambda ()
(whitespace-mode t))))
;; These are keyboard shortcuts -- \C is ctrl; a hyphen is a pause.
(global-set-key "\C-cw" 'global-whitespace-mode)
(global-set-key "\C-c\C-w" 'whitespace-mode)
(global-set-key "\C-c=t" 'global-whitespace-toggle-options)
(global-set-key "\C-c_t" 'whitespace-toggle-options)
答案 0 :(得分:1)
M-x customize-group whitespace
,并启用全局空白模式。如果您不喜欢显示空格的默认方式,请自定义空白显示映射。