Emacs 颜色。为什么它在当前行是灰色的?禅本主题

标签 emacs colors themes emacs-prelude

我安装了 Prelude在我的 emacs24 上。我正在使用 ubuntu 12.04

我第一次使用它时它工作得很好,但在接下来的所有时间里它都没有。 在我当前的行上,字体颜色是灰色的,所以很难看清我写的是什么。以前是粗体,保留保留字行的任何颜色。

我该如何解决这个问题?

Gray on Cursor line

或者带空格的空行都是黄色

我一直在尝试修复它: ~/.emacs.d/elpa/zenburn-theme-20130716.1457/zenburn-theme.el 文件,但我找不到解决方案...我认为问题可能出在这两行之间:

;;;;; hl-line-mode

`(hl-line-face ((,class (:background ,zenburn-bg-05)) (t :weight bold)))
`(hl-line ((,class (:background ,zenburn-bg-05)) ; old emacsen (t :weight bold)))

谢谢!

最佳答案

您可以将背景和前景更改为您想要的任何内容,或将其完全关闭。您可以添加粗体或下划线或上划线或倾斜,或者任何让您的船漂浮的东西。我最早的项目之一是从颜色主题中获取设置并将其放入我的 .emacs 文件中,此后我就没有使用过特定的颜色主题。哦,当然你想打开你的 .emacs 或 init 文件,看看是否有任何设置与你正在使用的颜色主题冲突。

(global-hl-line-mode 1)  ;; highlight current line -- see hl-line.el

(custom-set-faces
  '(highlight ((t (:background "grey80" :foreground "black" :bold t)))) ;; highlight current line
)

关于Emacs 颜色。为什么它在当前行是灰色的?禅本主题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17842144/

相关文章:

JavaFX 在鼠标按下时改变圆圈的颜色

r - 在 R 中查找所有列都相等的行

react-native - 如何在样式表创建中使用 useTheme 钩子(Hook)?

maven - 安装primefaces所有主题后,“artifactory”服务器上缺少jar

emacs python 模式 : how to highlight in different colors a str vs. unicode str

macos - 在 Emacs 中查看 PDF

Emacs 组织模式 : can I turn on the column-view on loading the file?

emacs - 如何在 emacs lisp 中硬编码参数?

graphics - 响度的配色方案?

java - 如何仅在某些情况下设置 Activity 无历史参数?