Skip to content

Commit a8b836d

Browse files
committed
fix(vc-gutter): use global-diff-hl-mode
Our former approach would enable diff-hl unconditionally. This way, the `diff-hl-global-modes` variable is respected. Ref: https://discourse.doomemacs.org/t/4710/2
1 parent 69f4b70 commit a8b836d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ui/vc-gutter/config.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060
;;; diff-hl
6161

6262
(use-package! diff-hl
63-
:hook (find-file . diff-hl-mode)
64-
:hook (vc-dir-mode . diff-hl-dir-mode)
6563
:hook (dired-mode . diff-hl-dired-mode)
64+
:hook (doom-first-file . global-diff-hl-mode)
65+
:hook (vc-dir-mode . turn-on-diff-hl-mode)
6666
:hook (diff-hl-mode . diff-hl-flydiff-mode)
6767
:commands diff-hl-stage-current-hunk diff-hl-revert-hunk diff-hl-next-hunk diff-hl-previous-hunk
6868
:config

0 commit comments

Comments
 (0)