突出显示与emacs中的flymake errline颜色冲突的语法?

时间:2012-06-29 22:54:09

标签: emacs syntax-highlighting flymake

我正在使用flymake和jshint突出显示emacs24中的javascript问题。我的custom.el有

(custom-set-faces '('(flymake-errline ((((class color)) (:background "Red" :foreground "Black")))))

这会将jshint抱怨的代码的背景颜色设置为红色,并且由于某些颜色难以在红色背景下读取,因此将前景色设置为黑色。

问题在于,如果突出显示的代码具有语法突出显示,则语法突出显示颜色会覆盖我的:foreground "Black",但我仍然无法读取突出显示的代码。

除了选择不同颜色外,人们还在做些什么来避免这个问题?

更新:奇怪的是,某些颜色 被我的:foreground "Black"覆盖。

1 个答案:

答案 0 :(得分:2)

'cat'这是你的emacs配置文件:

(custom-set-faces '(flymake-errline ((((class color)) (:background "Gray30")))) '(flymake-warnline ((((class color)) (:background "Gray20")))))