[英]Setting font in emacs-daemon
I have this line in my .emacs: 我的.emacs中有这行:
(set-face-font 'default "-unknown-DejaVu Sans Mono-bold-normal-normal-*-13-*-*-*-m-0-iso10646-1")
when I run emacs daemon and start my usual way, with emacs-daemon: 当我运行emacs守护程序并使用emacs-daemon启动我的常规方式时:
error: Font not available, #font-spec nil unknown DejaVu Sans Mono nil iso10646-1 bold normal normal 13 nil 100 0 ((:name . -unknown-DejaVu Sans Mono-bold-normal-normal-*-13-*-*-*-m-0-iso10646-1) (user-spec . -unknown-DejaVu Sans Mono-bold-normal-normal-*-13-*-*-*-m-0-iso10646-1))
I get the same error with the "emacs -nw". 我收到与“ emacs -nw”相同的错误。
It's fairly clear what is happening: the emacs daemon session is not ax session. 很清楚发生了什么:emacs守护程序会话不是斧头会话。 So it fails to pick up an X font. 因此,它无法选择X字体。 But then how do I setup things so this is the default font when an emacs client connects from an X session? 但是,当emacs客户端从X会话连接时,该如何设置东西,使其成为默认字体呢?
Try setting it through custom
: 尝试通过custom
设置它:
(custom-set-faces
'(default ((t (:inherit nil :height 100 :family "DejaVu Sans Mono")))))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.