我在我的.emacs文件中有以下内容:
(set-background-color "#101416")
(set-foreground-color "#f6f3e8")
我有两个绑定:
alias ex='emacsclient -nw'
alias ec='emacsclient -c -a ""'
使用ex在终端中打开客户端没有问题,但当我想将其作为框架打开时,我得到了白色背景 :(
为什么?我该如何在那里使用我的深色背景?
我在我的.emacs文件中有以下内容:
(set-background-color "#101416")
(set-foreground-color "#f6f3e8")
我有两个绑定:
alias ex='emacsclient -nw'
alias ec='emacsclient -c -a ""'
使用ex在终端中打开客户端没有问题,但当我想将其作为框架打开时,我得到了白色背景 :(
为什么?我该如何在那里使用我的深色背景?
set-background-color
和set-foreground-color
只会影响当前帧,当你使用emacsclient
时,你的.emacs
文件不会被执行。
尝试设置变量default-frame-alist
("用于帧创建的默认值列表"):
(setq default-frame-alist '((background-color . "#101416") (foreground-color . "#f6f3e8")))