Disable diff-hl in magit

This commit is contained in:
Willem Van den Ende
2022-08-10 23:30:23 +02:00
parent e1ade78140
commit 97ff21b768
2 changed files with 20 additions and 1 deletions
+14 -1
View File
@@ -8,6 +8,9 @@
- [[#maintainers][Maintainers]]
- [[#plugins][Plugins]]
- [[#hacks][Hacks]]
- [[#org-roam-server][Org-roam-server]]
- [[#links-removal-for-blogposts-and-other-exports][Links removal for blogposts and other exports]]
- [[#diff-hl-errors-in-magit][diff-hl errors in magit]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#pdf-export-from-latex-in-tufte-style][PDF export from latex, in tufte style]]
@@ -40,7 +43,17 @@ The README was generated by doom emacs when creating a README.org file with it.
+ [[https://gitlab.com/oer/org-re-reveal][org-re-reveal]]
** Hacks
Some in file:config.el. Port settings for ~org-roam-server~ are not standard, so need a function. Also some functions for replacing org-roam links with links to their website, for useto export as blog posts.
*** Org-roam-server
Some in file:config.el. Port settings for ~org-roam-server~ are not standard, so need a function.
*** Links removal for blogposts and other exports
Also some functions for replacing org-roam links with links to their website, useful for exports such as blog posts, where links to internal pages are not visible.
*** 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)~
* Prerequisites
Doom Emacs installation
+6
View File
@@ -207,6 +207,12 @@
;; configure git-delta
(after! magit (magit-delta-mode +1))
;; HACK: disable diff-hl in magit - it appears to work ok inside files, but not in magit
;; Why? diff-hl-magit-post-refresh appears to be 'null' for some reason
;; When? after stage, unstage or commit an error appears in messages.
(after! (magit)
(remove-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh))
(setq evil-move-cursor-back nil)