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

发布于 2024-11-03 05:17:05 字数 1010 浏览 1 评论 0原文

我使用“选项/设置默认字体”菜单项将我的默认 emacs 字体设置为 LMManoLtCond10(它弹出了一个很好的字体选择器 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-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 系统上使用 Emacs 23.1.1。

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). My emacs immediately adopted the new font, and I was very happy. I then did Options/Save Options, and on inspecting my .emacs.d/init.el file saw that it had written the following there:

(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. Instead, I think it's giving me LMRoman-12. Am I doing something wrong, or is this an emacs bug.

I'm using 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你爱我像她 2024-11-10 05:17:05

听起来这可能是一个错误。 Mx 报告-emacs-bug

Sounds like it might be a bug. M-x report-emacs-bug

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文