Merge pull request #983 from pastafari/add-magit-hook

Add a hook to magit that notifies diff-hl
This commit is contained in:
Bozhidar Batsov 2016-04-13 17:16:00 -07:00
commit 555abd9a2f

View file

@ -392,6 +392,7 @@ indent yanked text (with prefix arg don't indent)."
;; diff-hl ;; diff-hl
(global-diff-hl-mode +1) (global-diff-hl-mode +1)
(add-hook 'dired-mode-hook 'diff-hl-dired-mode) (add-hook 'dired-mode-hook 'diff-hl-dired-mode)
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
;; easy-kill ;; easy-kill
(global-set-key [remap kill-ring-save] 'easy-kill) (global-set-key [remap kill-ring-save] 'easy-kill)