Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a hook to magit that notifies diff-hl #983

Merged
merged 1 commit into from
Apr 14, 2016

Conversation

pastafari
Copy link
Contributor

diff-hl-mode was broken, it would not remove highlights even after a commit via magit.

As per the diff-hl-mode README

If you're using a version before 2.4.0, it defines magit-revert-buffer-hook (or magit-not-reverted-hook), which we use.
When using Magit 2.4 or newer, add this to your init script:
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)

- as per the diff-hl-mode README
  If you're using a version before 2.4.0, it defines
  magit-revert-buffer-hook (or magit-not-reverted-hook),
  which we use.

  When using Magit 2.4 or newer, add this to your init script:
  (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
@bbatsov bbatsov merged commit 555abd9 into bbatsov:master Apr 14, 2016
@bbatsov
Copy link
Owner

bbatsov commented Apr 14, 2016

👍

@pastafari pastafari deleted the add-magit-hook branch July 4, 2016 03:58
hbin pushed a commit to hbin/emacs.d that referenced this pull request Feb 22, 2017
Add a hook to magit that notifies diff-hl
hbin pushed a commit to hbin/emacs.d that referenced this pull request Feb 22, 2017
Add a hook to magit that notifies diff-hl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants