diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-25 13:32:22 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-25 13:32:22 -0400 |
| commit | 98409b8a43b835fb1f962fb568f9cd91197158c9 (patch) | |
| tree | 10ecdaf2ab41e648e5267c4b533743406b00b243 | |
| parent | bdbbbd5f4f049b3d15c594d38a953df0074aa736 (diff) | |
| download | dotemacs-98409b8a43b835fb1f962fb568f9cd91197158c9.tar.gz dotemacs-98409b8a43b835fb1f962fb568f9cd91197158c9.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.
| -rw-r--r-- | modules/org-roam-config.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/org-roam-config.el b/modules/org-roam-config.el index c6083c8f..eca867df 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 |
