Emacs颜色主题设置

4
我现在正在配置自己的emacs颜色主题,基于color-theme插件。
我只是找不到如何定义状态栏的颜色(显示当前行号、文件名、模式的地方)。例如,如果您使用color-theme-jb-simple,状态栏的颜色可能是蓝色4,但我找不到它在哪里定义。有人知道吗?
谢谢大家。
2个回答

5

我尝试了vpit3833的答案,使用了'modeline,但在启动时出现错误:
错误:无效的面,modeline

经过一番搜索后,我创建了以下内容:

;  I use the following with TERM=xterm-256color
(set-face-foreground 'mode-line "#606060")
(set-face-background 'mode-line "#202020")
(set-face-foreground 'mode-line-inactive "#606060")
(set-face-background 'mode-line-inactive "#202020")

我的终端是Xterm(使用export TERM=xterm-256color),运行在Ubuntu 14.04和Emacs版本24.3+1-2ubuntu1

更新:我现在通过在~/.Xdefaults文件中添加以下行来设置TERM=xterm-256color
xterm*termName: xterm-256color

您可能会发现以下诊断信息很有用:

M-x list-colors-display
M-x list-faces-display

相关链接:

https://www.gnu.org/software/emacs/manual/html_node/emacs/Colors.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Faces.html

这些链接与Emacs中的颜色和面部有关。

3

(set-face-background 'modeline "蓝色") 使我的模型行(Emacs 中称为模型行的状态栏)变为蓝色。


谢谢,我找到了它 (modeline ((t (:background "darkblue" :foreground "yellow")))) - mike

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