Setting a custom color for the git gutter fringe creates double fringe on doom/reload

I tried to set a custom color for the git gutter like this:

(custom-set-faces 
  '(diff-hl-insert ((t (:foreground "#00ff00"))))
  '(diff-hl-change ((t (:foreground "#ffff00"))))
  '(diff-hl-delete ((t (:foreground "#ff0000"))))
)

This works when Emacs is started, but after that if I run doom/reload after making more changes, I get a double fringe (one with my color, and one with the default color). I’m not sure what’s going on here.

Isn’t this overriding the default settings the correct way?

Fixed it like this:

(after! diff-hl
  (set-face-foreground 'diff-hl-insert "#00ff00")
  (set-face-foreground 'diff-hl-change "#ffff00")
  (set-face-foreground 'diff-hl-delete "#ff0000"))

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.