From df7cd0e30a2f338948a84c023422252c5f7ad63b Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 21 Feb 2026 15:17:16 -0600 Subject: fix(user-constants): create calendar data files on first launch org-agenda-list prompts interactively for missing files, which hangs the async subprocess chime uses to fetch events. Create empty placeholders at init so calendar-sync can populate them on first sync. --- modules/user-constants.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/user-constants.el') diff --git a/modules/user-constants.el b/modules/user-constants.el index 717e179e..b1f6016b 100644 --- a/modules/user-constants.el +++ b/modules/user-constants.el @@ -142,6 +142,12 @@ Stored in .emacs.d/data/ so each machine syncs independently from Proton Calenda "The location of the org file containing DeepSat Calendar information. Stored in .emacs.d/data/ so each machine syncs independently from Google Calendar.") +;; Ensure calendar data files exist so org-agenda-list doesn't hang +;; prompting for missing files (calendar-sync populates them on first sync) +(dolist (f (list gcal-file pcal-file dcal-file)) + (unless (file-exists-p f) + (make-empty-file f t))) + (defvar reference-file (expand-file-name "reference.org" org-dir) "The location of the org file containing reference information.") -- cgit v1.2.3