Add magit refresh hooks for diff-hl
This commit is contained in:
parent
f664607df1
commit
cc1eb6e181
|
@ -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))
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue