mirror of
https://github.com/correl/org-roam-export-backlinks.git
synced 2024-11-21 19:18:36 +00:00
Enable org-mode in temporary excerpt buffer
This commit is contained in:
parent
74304e45c1
commit
bce5ecfce4
1 changed files with 1 additions and 0 deletions
|
@ -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)))
|
||||||
|
|
Loading…
Reference in a new issue