From 4e48432c5020d545c57e3ff24c43bc291acb7250 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 25 Jun 2026 13:32:22 -0400 Subject: 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. --- modules/org-roam-config.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/org-roam-config.el') 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 -- cgit v1.2.3