Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Emacs:如何更改命令的匹配颜色;赫尔姆·格雷普·多吉特·格雷普“;?_Emacs - Fatal编程技术网

Emacs:如何更改命令的匹配颜色;赫尔姆·格雷普·多吉特·格雷普“;?

Emacs:如何更改命令的匹配颜色;赫尔姆·格雷普·多吉特·格雷普“;?,emacs,Emacs,Windows 7、Emacs 25.1、Helm软件包 我的掌舵grep do git grep命令屏幕截图: 我想将匹配文本颜色(深红色)更改为另一种颜色(例如绿色) 我试图在头盔grep face中查找,但未找到。 那么如何更改此面部颜色呢?根据您使用的颜色,您需要以下选项之一: (defface helm-git-grep-match '((default (:inherit helm-match))) "Face used to highlight git-grep(1)

Windows 7、Emacs 25.1、Helm软件包

我的掌舵grep do git grep命令屏幕截图:

我想将匹配文本颜色(深红色)更改为另一种颜色(例如绿色)

我试图在头盔grep face中查找,但未找到。


那么如何更改此面部颜色呢?

根据您使用的颜色,您需要以下选项之一:

(defface helm-git-grep-match
  '((default (:inherit helm-match)))
  "Face used to highlight git-grep(1) matches."
:group 'helm-git-grep-faces)


因此,您可以通过调用
M-x
自定义组
头盔grep faces
(或
头盔git grep faces
)来更改颜色。

我找到了解决方案。我更改了“d:\Programs\emacs\.gitconfig”

添加部分:

[color "grep"] 
  match = black yellow 

现在匹配文本颜色的前景色=黑色,背景色=黄色

我尝试了两种变体,但没有帮助。我需要更改命令“helm grep do git grep”(匹配文本颜色)的前景,它是从
helm match
继承的。你们也试着改变了吗?我改变了“头盔匹配面”和“头盔匹配项”-但并没有帮助,我找到了解决办法。我更改了“d:\Programs\emacs\.gitconfig”。添加:[color“grep”]match=black-yellow,现在match文本颜色的前景色为黑色,背景色为yellowGreat。您应该添加您的解决方案作为答案并接受它
[color "grep"] 
  match = black yellow