gpt4 book ai didi

Emacs 颜色主题设置

转载 作者:行者123 更新时间:2023-12-01 09:36:51 29 4
gpt4 key购买 nike

我现在根据颜色主题插件配置我自己的 emacs 颜色主题。

我只是找不到如何定义状态栏的颜色(显示当前行号,文件名,模式的位置)。例如,如果您使用 color-theme-jb-simple ,状态栏的颜色可能是 blue4 ,但是我找不到它的定义位置。有人知道吗?

谢谢大家。

最佳答案

我用 'modeline 尝试了 vpit3833 的回答,但在启动时出错: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 上.

更新:我现在设置 TERM=xterm-256color通过我的 ~/.Xdefaluts 中的一条线文件: 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 颜色主题设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5140197/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com