如何将emacsclient背景设置为Emacs背景? [英] How to set emacsclient background as Emacs background?
本文介绍了如何将emacsclient背景设置为Emacs背景?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有(在我的.emacs中)
I've got (in my .emacs)
(set-background-color "#101416")
(set-foreground-color "#f6f3e8")
我有两个绑定:
alias ex='emacsclient -nw'
alias ec='emacsclient -c -a ""'
ex可以在终端中打开客户端,但是当我想要打开它作为一个框架我有白色背景:(
ex works fine to open client in terminal but when I want to open it as a frame I've got white background :(
为什么和如何使用我的黑暗背景?
Why and how can I use my dark background there?
推荐答案
set-background-color
和 set-foreground-color
仅影响当前框架, code> .emacs 文件在运行 emacsclient
时不执行。
set-background-color
and set-foreground-color
only affect the current frame, and your .emacs
file is not executed when running emacsclient
.
尝试设置变量 default-frame-alist
(创建框架的默认值)
Try setting the variable default-frame-alist
("Alist of default values for frame creation") instead:
(setq default-frame-alist
'((background-color . "#101416")
(foreground-color . "#f6f3e8")))
这篇关于如何将emacsclient背景设置为Emacs背景?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文