Disable diff-hl in magit
This commit is contained in:
+14
-1
@@ -8,6 +8,9 @@
|
|||||||
- [[#maintainers][Maintainers]]
|
- [[#maintainers][Maintainers]]
|
||||||
- [[#plugins][Plugins]]
|
- [[#plugins][Plugins]]
|
||||||
- [[#hacks][Hacks]]
|
- [[#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]]
|
- [[#prerequisites][Prerequisites]]
|
||||||
- [[#features][Features]]
|
- [[#features][Features]]
|
||||||
- [[#pdf-export-from-latex-in-tufte-style][PDF export from latex, in tufte style]]
|
- [[#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]]
|
+ [[https://gitlab.com/oer/org-re-reveal][org-re-reveal]]
|
||||||
|
|
||||||
** Hacks
|
** 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
|
* Prerequisites
|
||||||
Doom Emacs installation
|
Doom Emacs installation
|
||||||
|
|
||||||
|
|||||||
@@ -207,6 +207,12 @@
|
|||||||
;; configure git-delta
|
;; configure git-delta
|
||||||
(after! magit (magit-delta-mode +1))
|
(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)
|
(setq evil-move-cursor-back nil)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user