aboutsummaryrefslogtreecommitdiff
path: root/modules/org-refile-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-24 07:16:42 -0500
committerCraig Jennings <c@cjennings.net>2026-05-24 07:16:42 -0500
commitc1885990fb6c2ac14595866db9b8030aefa8dc1d (patch)
tree2c31b6d9024a168b555c324353b8a5ba835a78a5 /modules/org-refile-config.el
parentaa2b3e59502551931fe6b7c9e47085c4f910eb78 (diff)
downloaddotemacs-c1885990fb6c2ac14595866db9b8030aefa8dc1d.tar.gz
dotemacs-c1885990fb6c2ac14595866db9b8030aefa8dc1d.zip
refactor(video-capture): drop startup timers for lazy protocol init
quick-video-capture scheduled an after-init-hook idle timer plus a 2-second fallback run-with-timer to call cj/setup-video-download, which require-d org-protocol and org-capture and registered both the protocol handler and the capture template. That loaded Org protocol/capture plumbing at every startup even when the video workflow was never used. Split the two concerns the way org-webclipper already does. The org-protocol handler is registered in a with-eval-after-load (quote org-protocol) block — a lightweight add-to-list that needs no org-capture — so it is in place whenever org-protocol loads (org-config requires it at startup). cj/setup-video-download now registers only the capture template, lazily, on the first capture (org-capture-mode-hook) or the first protocol call (the handler ensures it). Both startup timers are gone. Tests pin that setup registers the template idempotently and no longer touches the protocol alist; verified in a live daemon that the protocol registers on load.
Diffstat (limited to 'modules/org-refile-config.el')
0 files changed, 0 insertions, 0 deletions