我使用 Flymake 和 jshint 来突出显示 emacs24 中的 javascript 问题。我的custom.el 有
(custom-set-faces '('(flymake-errline ((((class color)) (:background "Red" :foreground "Black")))))
这会将 jshint 提示的代码的背景颜色设置为红色,并且由于某些颜色在红色背景下难以读取,因此将前景色设置为黑色。
问题是,如果突出显示的代码具有语法突出显示,则语法突出显示颜色会覆盖我的 :foreground "Black"
,但我仍然无法阅读突出显示的代码。
除了选择不同的颜色之外,人们还采取什么措施来避免这个问题?
更新:奇怪的是,某些颜色被被我的 :foreground "Black"
覆盖.
最佳答案
将其“cat”到您的 emacs 配置文件中:
(自定义设置面
'(flymake-errline ((((类颜色)) (:背景“Gray30”))))
'(flymake-warnline ((((class color)) (:background "Gray20")))))
关于emacs - 语法高亮与emacs中的flymake errline颜色冲突?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11269937/