1

适用于 OSX 的 Aquamacs 2.4 旨在使用Preferences.elcustomizations.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)
4

1 回答 1

1

M-x customize-group whitespace,并启用全局空白模式。如果您不喜欢默认的空白显示方式,请自定义空白显示映射。

于 2013-04-11T18:40:11.170 回答