我使用 Options/Set Default Font 菜单项将我的默认 emacs 字体设置为 LMMonoLtCond10(它提供了一个不错的字体选择器 GUI 小部件让我这样做)。我的 emacs 立即采用了新字体,我很高兴。然后我做了选项/保存选项,并在检查我的 .emacs.d/init.el 文件时看到它在那里写了以下内容:
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil :stipple nil :background "white" :foreground "black"
:inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal
:weight light :height 120 :width normal :foundry "unknown" :family "LMMonoLtCond10"))))
(我在下面定义了其他几个面孔。)
不幸的是,如果我退出 emacs 并重新启动,它完全无法重新创建我选择的字体配置。相反,我认为它给了我 LMRoman-12。我做错了什么,或者这是一个emacs错误。
我正在使用 Emacs 23.1.1:
(emacs-version)
"GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1)
of 2011-03-05 on palmer, modified by Debian"
在 Ubuntu 系统上。