From a8b836dac3d97f7e9aac9cee602560521b3ed61e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 25 Jul 2024 19:40:33 -0400 Subject: [PATCH] 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 --- modules/ui/vc-gutter/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/vc-gutter/config.el b/modules/ui/vc-gutter/config.el index f88ff4567..2be8761c5 100644 --- a/modules/ui/vc-gutter/config.el +++ b/modules/ui/vc-gutter/config.el @@ -60,9 +60,9 @@ ;;; diff-hl (use-package! diff-hl - :hook (find-file . diff-hl-mode) - :hook (vc-dir-mode . diff-hl-dir-mode) :hook (dired-mode . diff-hl-dired-mode) + :hook (doom-first-file . global-diff-hl-mode) + :hook (vc-dir-mode . turn-on-diff-hl-mode) :hook (diff-hl-mode . diff-hl-flydiff-mode) :commands diff-hl-stage-current-hunk diff-hl-revert-hunk diff-hl-next-hunk diff-hl-previous-hunk :config