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 | e12b81891c1d7b9f54b8e18846cad09e7db37bc3 (patch) | |
| tree | b02b3fc882ba8ca6509a10a9f4d27d8595b8f505 /modules | |
| parent | f673d3b0aae4ffb38f3ec3867e28629d1901cc8d (diff) | |
| download | dotemacs-e12b81891c1d7b9f54b8e18846cad09e7db37bc3.tar.gz dotemacs-e12b81891c1d7b9f54b8e18846cad09e7db37bc3.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')
| -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.") |
