3

我有(在我的 .emacs 中)

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

我有 2 个绑定:

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

ex 可以很好地在终端中打开客户端,但是当我想将其作为框架打开时,我有白色背景:(

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

4

1 回答 1

4

set-background-color并且set-foreground-color只影响当前帧,.emacs运行时不会执行你的文件emacsclient

尝试设置变量default-frame-alist(“用于创建框架的默认值列表”):

(setq 默认帧列表
      '((背景色。“#101416”)
        (前景色。“#f6f3e8”)))
于 2012-02-14T13:38:41.097 回答