使用Aquamacs 2.4(OSX Mountain Lion)自动显示空白

时间:2013-04-11 17:44:07

标签: emacs dot-emacs

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

1 个答案:

答案 0 :(得分:1)

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