2011-02-28 160 views
2

我现在配置我自己的emacs颜色主题,基于颜色主题插件。Emacs颜色主题设置

我只是无法找到如何定义状态栏的颜色(其中显示当前行号,文件名,模式)。就像使用color-theme-jb-simple一样,状态栏的颜色为可能blue4,但我无法找到它的定义。有人知道吗?

谢谢大家。

回答

4

(set-face-background 'modeline "Blue")使我的模式行为(您称之为状态栏在Emacs中称为模式行)蓝色。

+0

谢谢,我发现它(modeline((t(:background“darkblue”:foreground“yellow”)))) – mike 2011-02-28 10:02:16

+0

@mike你应该给信贷并接受这个答案。 – 2014-11-18 09:47:39

3

我试图vpit3833的答案与'modeline,却得到了在启动时出现错误:
error: Invalid face, 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上。

更新:
xterm*termName: xterm-256color

您可能会发现下面的诊断是有用的::我现在通过线路在我~/.Xdefaluts文件中设置TERM=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