summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 174438a9..6a4a121d 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -784,7 +784,9 @@ Also returns nil if pid is nil."
 
 (use-package diff-hl
   :ensure t
-  :init (global-diff-hl-mode))
+  :init (progn
+          (global-diff-hl-mode)
+          (add-hook 'magit-refresh-file-buffer-hook #'diff-hl-update)))
 
 (use-package magit
   :commands (magit-status)