【发布时间】:2011-06-17 21:35:26
【问题描述】:
我在使用emacsclient -c 时收到错误Unable to load color "unspecified-bg" [16 times]。我已经使用 emacs --daemon 启动了 emacs。这似乎意味着我的自定义面孔不会加载。
当像往常一样启动emacs,然后使用M-x server-start,那么这个问题根本不会发生。如何让emacsclient -c 正确加载人脸?
以下是相关代码:
(custom-set-faces '(default ((t (:inherit nil :stipple nil :background "black" :foreground "white" :inverse-video nil :box nil :strike-through nil :overline nil :underline零:倾斜正常:体重正常:高度120:宽度正常:铸造“未知”:家庭“Inconsolata”)))))
【问题讨论】:
-
我已经尝试通过在初始化守护程序后手动自定义面部来解决这个问题。我启动了一个 emacs 客户端,然后在其中使用
M-x customize-face RET default来调出默认面。那里的值似乎没有改变。如果我更改它们,然后保存所有会话,我可以启动使用这些设置的新客户端窗口。但是,如果我重新启动 emacs 守护程序,我会得到通常的错误。奇怪,因为编辑面部似乎只是编辑 .emacs 以使其包含新设置。
标签: emacs emacs-faces