如何将emacsclient背景设置为Emacs背景?

3

我在我的.emacs文件中有以下内容:

(set-background-color "#101416")
(set-foreground-color "#f6f3e8")

我有两个绑定:

alias ex='emacsclient -nw'
alias ec='emacsclient -c -a ""'

使用ex在终端中打开客户端没有问题,但当我想将其作为框架打开时,我得到了白色背景 :(

为什么?我该如何在那里使用我的深色背景?

1个回答

4

set-background-colorset-foreground-color只会影响当前帧,当你使用emacsclient时,你的.emacs文件不会被执行。

尝试设置变量default-frame-alist("用于帧创建的默认值列表"):

(setq default-frame-alist
      '((background-color . "#101416")
        (foreground-color . "#f6f3e8")))

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接