gpt4 book ai didi

emacs - 如何自定义 volatile-highlights 背景颜色?

转载 作者:太空宇宙 更新时间:2023-11-03 18:54:54 24 4
gpt4 key购买 nike

我使用 volatitle-highlights-mode(VHL)突出显示上次编辑区域。但是 VHL 的背景颜色对于 solarized-theme 来说太浅了。 .所以我想更改 VHL 的背景颜色。

我从VHL中找到了片段,如下:

(defface vhl/default-face
(cond
((or vhl/.xemacsp
(vhl/.face-inheritance-possible-p))
'((((class color) (background light))
(:background "yellow1"))
(((class color) (background dark))
(:background "SkyBlue4"))
(t :inverse-video t)))
(t
'((t
:inherit secondary-selection
))))
"Face used for volatile highlights."
:group 'volatile-highlights)

这个片段指定了 VHL 背景的颜色,那么我如何在我的 .emacs.d 中自定义背景颜色来覆盖默认的 VHL 背景颜色。

欢迎使用代码片段!谢谢。

最佳答案

你也可以只使用M-x customize-face RET vhl/default-face。面的定义方式无关紧要:您仍然可以使用 Customize 对其进行自定义。

关于emacs - 如何自定义 volatile-highlights 背景颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12027321/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com