Aquamacs 2.4 OSX已经被设计为使用Preferences.el
和customizations.el
代替~/.emacs
使用Aquamacs 2.4自动显示空白字符(OSX山狮)
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)
您不应该以这种方式修改问题。您可以发布自己的解答解释您的解决方案。原来的问题一定要保持,所以答案是有道理的。 – brasofilo 2013-04-14 20:02:40
谢谢您的建议以备将来参考。我很担心从'ataylor'偷窃雷声,因为我非常感谢他的帮助。我希望能够包含解决方案的一些代码(不适用于评论),但我不想让它看起来好像我用我自己的答案对他进行了提升(这会使他的帮助减弱慷慨提供)。为了保持这个问题,我会尽量保持平衡,并且不要试图让任何有时间帮助我达成解决方案的人。 – lawlist 2013-04-14 20:31:49
没有问题,你写你自己的扩展别人的答案。只要信用来源,它全是k。事实上,你自己的解释可能会帮助其他人,就像@ ataylor's帮助你:) - 我强烈建议你将问题恢复到原始问题并发布答案。 – brasofilo 2013-04-14 20:34:55