From 3390b83319dbc7aef5a101c7e39ef48f6921f265 Mon Sep 17 00:00:00 2001 From: Willem Van den Ende Date: Wed, 10 Aug 2022 23:33:56 +0200 Subject: [PATCH] Document diff-hl error in magit workaround --- README.org | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 3fc1bed..601a925 100644 --- a/README.org +++ b/README.org @@ -51,8 +51,18 @@ The README was generated by doom emacs when creating a README.org file with it. *** 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. -Workaround: enable global mode - ~(global-diff-hl-mode)~ +**** Why +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 Doom Emacs installation