mirror of
https://github.com/org-roam/org-roam
synced 2025-08-17 13:33:31 -05:00
perf: suppress extra org features in the temp buffer
Figuring out how to indent things and folding and clock updates, etc. consumes a great deal of time especially considering that files are (currently) processed for /every single backlink/ even if multiple backlinks come from the same file. This dramatically improves the load/refresh time for the org-roam buffer. Fix: #2399
This commit is contained in:
@@ -163,7 +163,8 @@ If FILE, set `default-directory' to FILE's directory and insert its contents."
|
|||||||
(let ((current-org-roam-directory (make-symbol "current-org-roam-directory")))
|
(let ((current-org-roam-directory (make-symbol "current-org-roam-directory")))
|
||||||
`(let ((,current-org-roam-directory org-roam-directory))
|
`(let ((,current-org-roam-directory org-roam-directory))
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(let ((org-roam-directory ,current-org-roam-directory))
|
(let ((org-roam-directory ,current-org-roam-directory)
|
||||||
|
(org-inhibit-startup t))
|
||||||
(delay-mode-hooks (org-mode))
|
(delay-mode-hooks (org-mode))
|
||||||
(when ,file
|
(when ,file
|
||||||
(insert-file-contents ,file)
|
(insert-file-contents ,file)
|
||||||
|
Reference in New Issue
Block a user