[英]Emacs color theme setting
i'm now configure my own emacs color theme , base on the color-theme plugin. 我现在配置我自己的emacs颜色主题,基于颜色主题插件。
i just can't find how to define the status bar's color (where the current line number ,file name ,mode is shown ) .such as if you use color-theme-jb-simple , the status bar's color is likely blue4 ,but i can't find where it is defined .anyone knows ? 我只是找不到如何定义状态栏的颜色(显示当前行号,文件名,模式)。如果你使用color-theme-jb-simple,状态栏的颜色可能是blue4,但是我无法找到它的定义。任何人都知道?
thanks all. 谢谢大家。
(set-face-background 'modeline "Blue")
使我的模式行(你称之为状态栏的名称在Emacs中称为模式行)为蓝色。
I tried vpit3833's answer with 'modeline
, but got an error on startup: 我用'modeline
尝试了vpit3833的答案,但在启动时遇到错误:
error: Invalid face, modeline
After some searching, I created the following: 经过一番搜索,我创建了以下内容:
; 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")
My terminal is Xterm (with export TERM=xterm-256color
), on Ubuntu 14.04 and Emacs version 24.3+1-2ubuntu1
. 我的终端是Xterm( export TERM=xterm-256color
),Ubuntu 14.04和Emacs版本24.3+1-2ubuntu1
。
Update: I now set TERM=xterm-256color
via a line in my ~/.Xdefaluts
file: 更新:我现在通过~/.Xdefaluts
文件中的一行设置TERM=xterm-256color
:
xterm*termName: xterm-256color
You may find the following diagnostics to be useful: 您可能会发现以下诊断有用:
M-x list-colors-display
M-x list-faces-display
Related links: 相关链接:
https://www.gnu.org/software/emacs/manual/html_node/emacs/Colors.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Faces.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Colors.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Faces.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.