2017-04-15 55 views

回答

0

我找到了解決方案。我更改「d:\ Programs \ emacs \ .gitconfig」。

添加部分:

[color "grep"] 
    match = black yellow 

現在匹配文本顏色有前景色=黑,bakground顏色=黃色

0

取決於你使用的是什麼,你正在尋找的以下任一:

(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-xcustomize-group改變顏色helm-grep-faces(或helm-git-grep-faces)。

+0

我嘗試2個變種,但它不能幫助。我需要改變前景命令「helm-grep-do-git-grep」(文字顏色) – Alexei

+0

它是從'helm-match'繼承的。你也嘗試過改變它嗎? – dangom

+0

我改變了「舵匹配面」和「舵匹配項」 - 但沒有幫助 – Alexei