all repos — nixfiles @ ac2ffde265b616d60a56b7b806fef85368bd3d25

System and user configuration, managed by nix and home-manager

Emacs: run diff-hl-update when magit refreshes a buffer

Alan Pearce
commit

ac2ffde265b616d60a56b7b806fef85368bd3d25

parent

63df4b48d2e8017c98c9af35a8a8d31ff7cac78b

1 file changed, 3 insertions(+), 1 deletion(-)

jump to
M emacs/init.elemacs/init.el
@@ -784,7 +784,9 @@ (setq vc-follow-symlinks t)))
(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)