]> git.armaanb.net Git - config.org.git/commitdiff
Add post/pre refresh hooks to diff-hl
authorArmaan Bhojwani <me@armaanb.net>
Sun, 28 Mar 2021 14:07:52 +0000 (10:07 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Sun, 28 Mar 2021 14:07:52 +0000 (10:07 -0400)
config.org

index 149d3c075bb3a890b353df357abf3470e324ea38..8efd94bae8e5e63b1ef7c87e5f0ba45726d7ad7b 100644 (file)
@@ -588,6 +588,8 @@ Company-box adds icons.
 #+begin_src emacs-lisp
   (use-package diff-hl
     :straight (diff-hl :type git :host github :repo "dgutov/diff-hl")
+    :hook ((magit-pre-refresh-hook . diff-hl-magit-pre-refresh)
+           (magit-post-refresh-hook . diff-hl-magit-post-refresh))
     :config (global-diff-hl-mode))
 #+end_src
 * General text editing