refactor rename plus old stuff

This commit is contained in:
Willem van den Ende
2023-01-12 13:13:44 +00:00
parent b485706910
commit f1feb7b8db
5 changed files with 76 additions and 15 deletions
+17 -4
View File
@@ -10,7 +10,8 @@
- [[#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]]
- [[#diff-hl-errors-in-magit-workaround][Diff-hl errors in magit workaround]]
- [[#shorter-previews-for-backlinks-in-roam-buffer][Shorter previews for backlinks in roam-buffer]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#pdf-export-from-latex-in-tufte-style][PDF export from latex, in tufte style]]
@@ -45,12 +46,10 @@ The README was generated by doom emacs when creating a README.org file with it.
** Hacks
*** 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 workaround
*** diff-hl errors in magit
**** 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.
@@ -63,6 +62,20 @@ file:config.el
#+end_src
adding diff-hl to the after! list did not seem to work. it is all a bit mysterious.
*** Shorter previews for backlinks in roam-buffer
From https://github.com/org-roam/org-roam/issues/1934 by Jethro Kuan
#+begin_quote
(defun my/preview-fetcher ()
(let* ((elem (org-element-context))
(parent (org-element-property :parent elem)))
;; TODO: alt handling for non-paragraph elements
(string-trim-right (buffer-substring-no-properties
(org-element-property :begin parent)
(org-element-property :end parent)))))
(setq org-roam-preview-function #'my/preview-fetcher)
#+end_quote
* Prerequisites
Doom Emacs installation