From ac2ffde265b616d60a56b7b806fef85368bd3d25 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 31 Oct 2013 21:50:49 +0000 Subject: Emacs: run diff-hl-update when magit refreshes a buffer --- emacs/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit 1.4.1