diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-10-17 15:14:19 -0400 |
---|---|---|
committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-10-17 15:14:19 -0400 |
commit | 54cb56ce9e2a9fdee03441f2b12a4d06bc0bff65 (patch) | |
tree | abdc535a364690710134d8a06656cc1ebf2611de /init.el | |
parent | Change "necessary packages" to "dependencies" (diff) | |
download | mmosmacs-54cb56ce9e2a9fdee03441f2b12a4d06bc0bff65.tar.gz mmosmacs-54cb56ce9e2a9fdee03441f2b12a4d06bc0bff65.tar.bz2 mmosmacs-54cb56ce9e2a9fdee03441f2b12a4d06bc0bff65.zip |
Automatically preview LaTeX in `*org-roam*` buffers
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1198,6 +1198,10 @@ | |||
1198 | org-format-latex-options (plist-put org-format-latex-options | 1198 | org-format-latex-options (plist-put org-format-latex-options |
1199 | :scale 1.75))) | 1199 | :scale 1.75))) |
1200 | 1200 | ||
1201 | ;; Automatically preview LaTeX in *org-roam* buffers | ||
1202 | (add-hook 'org-roam-buffer-postrender-functions | ||
1203 | (lambda () (org--latex-preview-region (point-min) (point-max)))) | ||
1204 | |||
1201 | ;; CDLaTeX | 1205 | ;; CDLaTeX |
1202 | (use-package cdlatex | 1206 | (use-package cdlatex |
1203 | :straight t | 1207 | :straight t |