基于这个问题:如何将emacsclient背景设置为Emacs背景? https://stackoverflow.com/questions/9271930/how-to-set-emacsclient-background-as-emacs-background/9277852#9277852
我只需要框架的背景,而不需要终端和控制台的背景。
这是我尝试添加控制台修复的方法
(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 添加背景。
(defun my-frame-config (frame)
"Custom behaviours for new frames."
(with-selected-frame frame
(when (display-graphic-p)
(set-background-color "#101416")
(set-foreground-color "#f6f3e8"))))
;; run now
(my-frame-config (selected-frame))
;; and later
(add-hook 'after-make-frame-functions 'my-frame-config)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)