Document diff-hl error in magit workaround
This commit is contained in:
+12
-2
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user