适用于 OSX 的 Aquamacs 2.4 旨在使用Preferences.el
而customizations.el
不是~/.emacs
首选项.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)