如何在Emacs中叠加一个只能修改下划线的面孔 [英] How to overlay a face in Emacs that ONLY modifies the underline
问题描述
`(flyspell-incorrect((t(:underline)# ff7bbb))))
当我编辑一个组织模式文件时, p>
* Expedia
当我输入* Expedi时,脸部是通常的组织级别1脸,直到我输入Expedia的最后一个a,此时该字由flyspell不正确加下划线,前景更改为红色。如何告诉它不要将颜色改为红色,但只能修改下划线,并从原来的面部继承前景(例如组织级别1,2等)。
flyspell-incorrect
从基本的错误继承
面部,其默认规格是红色的前景。
由于自定义主题不清除脸部默认规范中的属性,您的 flyspell不正确
face仍然继承自错误
,因此具有红色的前景。
要删除前台,通过取消设置:继承$,从
错误
中的 flycheck-incorrect
c $ c>属性,例如
`(flyspell-incorrect((t(:underline#ff7bbb继承未指定))))
In my color theme settings, I have this:
`(flyspell-incorrect ((t (:underline "#ff7bbb"))))
When I am editing an org-mode file with something like:
* Expedia
The face is the usual org level 1 face while I am typing "* Expedi" until I type the last "a" of Expedia, at which time the word is underlined by flyspell-incorrect AND the foreground is changed to red. How can I tell it not to change the color to red, but to only modify the underline and inherit the foreground from what the face would otherwise be (e.g. org level 1, 2, etc).
flyspell-incorrect
inherits from the basic error
face, whose default specification is a red foreground.
As custom themes do not clear the attributes from the face' default specification, your flyspell-incorrect
face still inherits from error
and thus has a red foreground.
To remove the foreground, "unlink" flycheck-incorrect
from error
by unsetting the :inherit
attribute in your specification, e.g.
`(flyspell-incorrect ((t (:underline "#ff7bbb" :inherit unspecified))))
这篇关于如何在Emacs中叠加一个只能修改下划线的面孔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!