summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-10-31 21:50:49 +0000
committerAlan Pearce2013-10-31 21:52:09 +0000
commitac2ffde265b616d60a56b7b806fef85368bd3d25 (patch)
treee6fb4ee9e269f8062157d4e275347faf5033751b /emacs
parent63df4b48d2e8017c98c9af35a8a8d31ff7cac78b (diff)
downloaddotfiles-ac2ffde265b616d60a56b7b806fef85368bd3d25.tar.lz
dotfiles-ac2ffde265b616d60a56b7b806fef85368bd3d25.tar.zst
dotfiles-ac2ffde265b616d60a56b7b806fef85368bd3d25.zip
Emacs: run diff-hl-update when magit refreshes a buffer
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 174438a..6a4a121 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)