Document diff-hl error in magit workaround

This commit is contained in:
Willem Van den Ende
2022-08-10 23:33:56 +02:00
parent 97ff21b768
commit 3390b83319
+12 -2
View File
@@ -51,8 +51,18 @@ The README was generated by doom emacs when creating a README.org file with it.
*** diff-hl errors in magit *** diff-hl errors in magit
I think diff-hl shows changes at the side of a buffer. For inside magit we now have `magit-delta` so it is not needed there. But for now, use the workaround. **** Why
Workaround: enable global mode - ~(global-diff-hl-mode)~ I think diff-hl shows changes at the side of a buffer, which I quite like. It seems configured with Doom emacs.
For inside magit we now have `magit-delta` so it is not needed there. But for now, use one of the workarounds.
**** Manual workaround: enable global mode - ~(global-diff-hl-mode)~
**** Config workaround - disable diff-hl in magit
file:config.el
#+begin_src emacs-lisp
(after! (magit)
(remove-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh))
#+end_src
adding diff-hl to the after! list did not seem to work. it is all a bit mysterious.
* Prerequisites * Prerequisites
Doom Emacs installation Doom Emacs installation