Add magit refresh hooks for diff-hl

This commit is contained in:
Evie Litherland-Smith 2023-12-08 15:19:16 +00:00
parent f664607df1
commit cc1eb6e181
2 changed files with 10 additions and 2 deletions

View file

@ -286,7 +286,11 @@
(use-package diff-hl
:ensure t
:config (global-diff-hl-mode)
:init
(add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh)
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
:config
(global-diff-hl-mode)
:custom
(diff-hl-disable-on-remote t))

View file

@ -347,7 +347,11 @@
#+begin_src emacs-lisp
(use-package diff-hl
:ensure t
:config (global-diff-hl-mode)
:init
(add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh)
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
:config
(global-diff-hl-mode)
:custom
(diff-hl-disable-on-remote t))
#+end_src