Enable org-mode in temporary excerpt buffer

This commit is contained in:
Correl Roush 2023-11-02 11:56:11 -04:00
parent 74304e45c1
commit bce5ecfce4

View file

@ -48,6 +48,7 @@
(defun org-roam-export-backlinks-excerpt (backlink) (defun org-roam-export-backlinks-excerpt (backlink)
"Get the Org element containing the link from BACKLINK as an excerpt." "Get the Org element containing the link from BACKLINK as an excerpt."
(with-temp-buffer (with-temp-buffer
(org-mode)
(insert-file-contents (org-roam-node-file (org-roam-backlink-source-node backlink))) (insert-file-contents (org-roam-node-file (org-roam-backlink-source-node backlink)))
(goto-char (org-roam-backlink-point backlink)) (goto-char (org-roam-backlink-point backlink))
(org-roam-export-backlinks--excerpt))) (org-roam-export-backlinks--excerpt)))