我刚刚在我的 Mac 上安装了 Aquamacs。
我家中有一个 .emacs 文件,其中包含我的所有自定义设置。其中,我有:
(custom-set-faces
'(default ((t (:stipple nil :background "black" :foreground "grey70" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 140 :width normal :foundry "apple" :family "Monaco"))))
'(font-lock-builtin-face ((t (:foreground "grey50"))))
'(font-lock-comment-face ((t (:foreground "darkgreen"))))
'(font-lock-constant-face ((t (:foreground "grey50"))))
'(font-lock-doc-face ((t (:foreground "grey50"))))
'(font-lock-doc-string-face ((t (:foreground "yellow2"))))
'(font-lock-function-name-face ((t (:foreground "SteelBlue"))))
'(font-lock-keyword-face ((t (:foreground "red"))))
'(font-lock-preprocessor-face ((t (:foreground "SteelBlue"))))
'(font-lock-reference-face ((t (:foreground "LightSkyBlue"))))
'(font-lock-string-face ((t (:foreground "yellow2"))))
'(font-lock-type-face ((t (:foreground "violet"))))
'(font-lock-variable-name-face ((t (:foreground "orange"))))
'(font-lock-warning-face ((t (:foreground "grey50"))))
'(isearch ((t (:background "yellow4" :foreground "black"))))
'(mode-line ((t (:background "grey90" :foreground "black"))))
'(text-mode-default ((t nil)))
'(zmacs-region ((t (:background "grey70" :foreground "black")))))
Run Code Online (Sandbox Code Playgroud)
此块似乎不会自动应用。
如果我从 .emacs 中选择行并手动评估它们,一切正常。我的猜测是这些选项在其他地方被覆盖。
我该如何调试?我应该在哪里设置我的自定义面孔?
更新:
根据此,喜好应该按以下顺序装入:
~/.emacs (deprecated -- meaning 'should not be used
for new installations, but will continue to be supported' -- in Aquamacs on OS X)
customizations saved by request or automatically by Aquamacs in customizations.el
/Library/Preferences/Emacs/Preferences.el
/Library/Preferences/Aquamacs Emacs/Preferences.el
~/Library/Preferences/Emacs/Preferences.el
~/Library/Preferences/Aquamacs Emacs/Preferences.el
Run Code Online (Sandbox Code Playgroud)
我的~/Library/Preferences/Aquamacs Emacs/Preferences.el样子(默认情况下):
(load "~/.emacs")
Run Code Online (Sandbox Code Playgroud)
所以这对我来说真的没有意义......
| 归档时间: |
|
| 查看次数: |
2186 次 |
| 最近记录: |