如何在Emacs中叠加一个只能修改下划线的面孔 [英] How to overlay a face in Emacs that ONLY modifies the underline

查看:144
本文介绍了如何在Emacs中叠加一个只能修改下划线的面孔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 `(flyspell-incorrect((t(:underline)# ff7bbb))))

当我编辑一个组织模式文件时, p>

  * Expedia 

当我输入* Expedi时,脸部是通常的组织级别1脸,直到我输入Expedia的最后一个a,此时该字由flys​​pell不正确加下划线,前景更改为红色。如何告诉它不要将颜色改为红色,但只能修改下划线,并从原来的面部继承前景(例如组织级别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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆