我现在根据颜色主题插件配置我自己的 emacs 颜色主题。
我只是找不到如何定义状态栏的颜色(显示当前行号、文件名、模式的位置)。例如,如果您使用 color-theme-jb-simple ,状态栏的颜色可能是 blue4 ,但是我找不到它的定义位置。有人知道吗?
谢谢大家。
我尝试了 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")
Run Code Online (Sandbox Code Playgroud)
我的终端是 Xterm(带有export TERM=xterm-256color),在 Ubuntu 14.04 和 Emacs 版本上24.3+1-2ubuntu1。
更新:我现在TERM=xterm-256color通过~/.Xdefaluts文件中的一行设置:
xterm*termName: xterm-256color
您可能会发现以下诊断很有用:
M-x list-colors-display
M-x list-faces-display
Run Code Online (Sandbox Code Playgroud)
相关链接:
https://www.gnu.org/software/emacs/manual/html_node/emacs/Colors.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Faces.html