简体   繁体   English

Emacs custom-face丢失/失败,无法识别它写入我的.emacs本身的字体名称

[英]Emacs customize-face loses/fails to recognise font-name it wrote to my .emacs itself

I used the Options/Set Default Font menu item to set my default emacs font to be LMMonoLtCond10 (it brought up a nice font-selector GUI widget to let me do this). 我使用“选项/设置默认字体”菜单项将我的默认emacs字体设置为LMMonoLtCond10(它调出了一个不错的字体选择器GUI小部件让我执行此操作)。 My emacs immediately adopted the new font, and I was very happy. 我的emacs立即采用了新字体,我感到非常高兴。 I then did Options/Save Options, and on inspecting my .emacs.d/init.el file saw that it had written the following there: 然后,我执行了选项/保存选项,并且在检查我的.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"))))

(There are a couple of other faces I've defined below that.) (我在下面定义了一些其他面孔。)

Unfortunately, if I quit emacs, and restart, it completely fails to recreate the font configuration that I had selected. 不幸的是,如果我退出emacs并重新启动,它完全无法重新创建我选择的字体配置。 Instead, I think it's giving me LMRoman-12. 相反,我认为这给了我LMRoman-12。 Am I doing something wrong, or is this an emacs bug. 我是在做错什么,还是这是emacs的错误。

I'm using Emacs 23.1.1: 我正在使用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"

on an Ubuntu system. 在Ubuntu系统上。

Sounds like it might be a bug. 听起来可能是一个错误。 Mx report-emacs-bug

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM