我想防止flyspell改变单词的前景色,只需添加一个红色下划线。
我已经尝试过这里的建议,但没有任何效果:How to overlay a face in Emacs that only modify the underline。也许我误解了答案,但是inherit: undefined
在自定义界面中设置什么也没做。
猜想我应该自定义flyspell-duplicate
and flyspell-incorrect
,但是如何?
我想防止flyspell改变单词的前景色,只需添加一个红色下划线。
我已经尝试过这里的建议,但没有任何效果:How to overlay a face in Emacs that only modify the underline。也许我误解了答案,但是inherit: undefined
在自定义界面中设置什么也没做。
猜想我应该自定义flyspell-duplicate
and flyspell-incorrect
,但是如何?
正如@chakravarthy-raghunandan 所建议的那样,问题在于本地定制。
原来我使用的主题设置了这个,所以我的自定义被覆盖了。
把它放在我init.el
解决的问题中:
(custom-theme-set-faces
'cyberpunk
'(flyspell-duplicate ((t (:weight bold :underline (:color "#ff0000" :style wave)))))
'(flyspell-incorrect ((t (:weight bold :underline (:color "#ff0000" :style wave))))))