aboutsummaryrefslogtreecommitdiff
path: root/modules/org-roam-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-25 13:32:22 -0400
committerCraig Jennings <c@cjennings.net>2026-06-25 13:32:22 -0400
commit4e48432c5020d545c57e3ff24c43bc291acb7250 (patch)
treeda8345899d777240a4ac9952006864554d2894de /modules/org-roam-config.el
parent9eb06b28b00d5e9cb41308592f79f311e7376b46 (diff)
downloaddotemacs-4e48432c5020d545c57e3ff24c43bc291acb7250.tar.gz
dotemacs-4e48432c5020d545c57e3ff24c43bc291acb7250.zip
fix(org-roam): drop the redundant refile-targets build that froze first idle
org-roam is :defer 1, and its :config called cj/build-org-refile-targets, running the multi-file refile scan synchronously at the 1s idle on a cold cache, which froze Emacs at first idle. org-refile-config already schedules the same build on a 5s idle timer, so the org-roam call was a duplicate. Removed it; the 5s timer covers it.
Diffstat (limited to 'modules/org-roam-config.el')
-rw-r--r--modules/org-roam-config.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/org-roam-config.el b/modules/org-roam-config.el
index c6083c8fb..eca867df8 100644
--- a/modules/org-roam-config.el
+++ b/modules/org-roam-config.el
@@ -102,8 +102,10 @@ FILETAGS and TITLE must sit on separate lines so Org parses the
;; org-log-done is set once in org-config.el (cj/org-todo-settings).
(setq org-agenda-timegrid-use-ampm t)
- (when (fboundp 'cj/build-org-refile-targets)
- (cj/build-org-refile-targets))
+ ;; Don't build the org-refile targets cache here. org-refile-config.el
+ ;; already schedules it on a 5s idle timer; doing it in org-roam's :config
+ ;; (which fires at the 1s :defer) ran the same multi-file scan synchronously
+ ;; at first idle and froze Emacs on a cold cache. The 5s timer covers it.
;; remove/disable if performance slows
;; (setq org-element-use-cache nil) ;; disables caching org files