【发布时间】:2012-03-06 11:11:04
【问题描述】:
基于这个问题:How to set emacsclient background as Emacs background?
我只需要框架的背景,而不是终端和控制台。
这是我尝试为控制台添加修复程序的方式
(when (display-graphic-p)
(tool-bar-mode -1)
(scroll-bar-mode t)
(require 'nyan-mode)
(nyan-mode)
(nyan-start-animation)
(mouse-wheel-mode t)
(setq default-frame-alist
'((background-color . "#101416")
(foreground-color . "#f6f3e8"))
)
)
但是,我没有获得 emacsclient 的背景知识(即使是框架)。也许检查甚至没有在 emacsclient 中运行?
基本上我不想在终端和控制台中为 emacsclient 添加背景,而是在框架中。
【问题讨论】:
-
您的代码在哪里被评估?请记住,.emacs 仅在 Emacs 启动时评估一次,而不是在 emacsclient 连接时。
-
好的,所以您的 .emacs 文件直接评估您的
(nCdy-mode)函数,这意味着您的(when (display-graphic-p) ...)子句的主体最多将被评估一次*,然后仅当 @987654325 @ 在 Emacs 启动时为真。 (*) 除非你也在其他地方调用 (nCdy-mode),但你没有说你是。
标签: linux emacs elisp emacsclient