Fix void-function diff-hl-magit-post-refresh error

This commit is contained in:
Henrik Lissner 2019-09-02 12:42:02 -04:00
parent f763bf2fd0
commit 07dfe2703c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -47,9 +47,7 @@
(use-package! diff-hl (use-package! diff-hl
:hook (dired-mode . diff-hl-dired-mode) :hook (dired-mode . diff-hl-dired-mode)
:init :hook (magit-post-refresh . diff-hl-magit-post-refresh)
(when (featurep! :tools magit)
(add-hook 'magit-post-refresh-hook #'diff-hl-magit-post-refresh))
:config :config
;; use margin instead of fringe ;; use margin instead of fringe
(diff-hl-margin-mode)) (diff-hl-margin-mode))