refactor rename plus old stuff
This commit is contained in:
+17
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user