From 54cb56ce9e2a9fdee03441f2b12a4d06bc0bff65 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Tue, 17 Oct 2023 15:14:19 -0400 Subject: Automatically preview LaTeX in `*org-roam*` buffers --- init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.el b/init.el index c09bca3..4b996f4 100644 --- a/init.el +++ b/init.el @@ -1198,6 +1198,10 @@ org-format-latex-options (plist-put org-format-latex-options :scale 1.75))) +;; Automatically preview LaTeX in *org-roam* buffers +(add-hook 'org-roam-buffer-postrender-functions + (lambda () (org--latex-preview-region (point-min) (point-max)))) + ;; CDLaTeX (use-package cdlatex :straight t -- cgit v1.2.3