diff options
| author | Craig Jennings <c@cjennings.net> | 2026-02-21 15:17:16 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-02-21 15:17:16 -0600 |
| commit | a310f707bc65638aeda7810c8a2fc29b04370e0b (patch) | |
| tree | d54c063f4727048a14e18da33b923875308857b6 /modules/user-constants.el | |
| parent | 4d4c6da42ba8d009e436e49ab6e30767cc8a2d23 (diff) | |
| download | dotemacs-a310f707bc65638aeda7810c8a2fc29b04370e0b.tar.gz dotemacs-a310f707bc65638aeda7810c8a2fc29b04370e0b.zip | |
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.
Diffstat (limited to 'modules/user-constants.el')
| -rw-r--r-- | modules/user-constants.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/user-constants.el b/modules/user-constants.el index 717e179e6..b1f6016b4 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.") |
