Windows 7中的Emacs 25.1,头盔包Emacs:如何更改命令“helm-grep-do-git-grep”的匹配颜色?
我想改变比赛的文字颜色(暗红色)到另一个(例如绿色)。
那么,我该如何改变这种颜色?
Windows 7中的Emacs 25.1,头盔包Emacs:如何更改命令“helm-grep-do-git-grep”的匹配颜色?
我想改变比赛的文字颜色(暗红色)到另一个(例如绿色)。
那么,我该如何改变这种颜色?
我找到了解决方案。我更改“d:\ Programs \ emacs \ .gitconfig”。
添加部分:
[color "grep"]
match = black yellow
现在匹配文本颜色有前景色=黑,bakground颜色=黄色
取决于你使用的是什么,你正在寻找的以下任一:
(defface helm-git-grep-match
'((default (:inherit helm-match)))
"Face used to highlight git-grep(1) matches."
:group 'helm-git-grep-faces)
或
(defface helm-grep-match
'((((background light)) :foreground "#b00000")
(((background dark)) :foreground "gold1"))
"Face used to highlight grep matches."
:group 'helm-grep-faces)
因此,你就可以通过调用M-x
customize-group
改变颜色helm-grep-faces
(或helm-git-grep-faces
)。
我尝试2个变种,但它不能帮助。我需要改变前景命令“helm-grep-do-git-grep”(文字颜色) – Alexei
它是从'helm-match'继承的。你也尝试过改变它吗? – dangom
我改变了“舵匹配面”和“舵匹配项” - 但没有帮助 – Alexei