diff options
author | Alan Pearce | 2013-10-31 21:50:49 +0000 |
---|---|---|
committer | Alan Pearce | 2013-10-31 21:52:09 +0000 |
commit | ac2ffde265b616d60a56b7b806fef85368bd3d25 (patch) | |
tree | e6fb4ee9e269f8062157d4e275347faf5033751b | |
parent | 63df4b48d2e8017c98c9af35a8a8d31ff7cac78b (diff) | |
download | dotfiles-ac2ffde265b616d60a56b7b806fef85368bd3d25.tar.lz dotfiles-ac2ffde265b616d60a56b7b806fef85368bd3d25.tar.zst dotfiles-ac2ffde265b616d60a56b7b806fef85368bd3d25.zip |
Emacs: run diff-hl-update when magit refreshes a buffer
-rw-r--r-- | emacs/init.el | 4 |
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) |