diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-13 14:21:41 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-13 14:21:41 -0500 |
| commit | 5b6011c4d28da7c26d7f818b1fb7ab7783e9ec77 (patch) | |
| tree | d41cdc950f01e7384d97e379338b3fdc24266394 /calendar-sync.local.el.example | |
| parent | 461eb0da4661a4c2dc0415a7368edb99b2464c07 (diff) | |
| download | dotemacs-5b6011c4d28da7c26d7f818b1fb7ab7783e9ec77.tar.gz dotemacs-5b6011c4d28da7c26d7f818b1fb7ab7783e9ec77.zip | |
chore: add calendar-sync.local.el example template
After e8f91a9 moved private feed URLs out of modules/calendar-sync.el,
new machines need a hand-written calendar-sync.local.el to populate
calendar-sync-calendars. The template shows the file shape, where to
find the .ics URLs, and which user-constants variables fill the :file
slots. The real file stays gitignored.
Diffstat (limited to 'calendar-sync.local.el.example')
| -rw-r--r-- | calendar-sync.local.el.example | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/calendar-sync.local.el.example b/calendar-sync.local.el.example new file mode 100644 index 00000000..ac001e4c --- /dev/null +++ b/calendar-sync.local.el.example @@ -0,0 +1,34 @@ +;;; calendar-sync.local.el.example --- Template for private calendar config -*- lexical-binding: t; -*- + +;; Copy this file to `calendar-sync.local.el' (sibling of init.el) and +;; replace the placeholder URLs with your actual private ICS feed +;; addresses. The real file is gitignored; the template is tracked. +;; +;; How it works: +;; - `modules/calendar-sync.el' defines `calendar-sync-private-config-file' +;; defaulting to ~/.emacs.d/calendar-sync.local.el. +;; - At the bottom of that module, `calendar-sync--load-private-config' +;; calls `load' on that path if readable. Missing file = silent no-op, +;; and `calendar-sync-now' prints "No calendars configured". +;; - `user-constants' is required earlier in init.el, so `gcal-file', +;; `pcal-file', and `dcal-file' are bound when this file is evaluated. +;; +;; Where to find the private .ics URL: +;; - Google Calendar: Settings -> Your Calendar -> Integrate calendar -> +;; "Secret address in iCal format" (regenerate if leaked). +;; - Proton Calendar: Settings -> Import/Export / Share -> "Share with +;; anyone (via link)" -> copy the .ics URL. + +(setq calendar-sync-calendars + `((:name "google" + :url "***REMOVED***" + :file ,gcal-file) + (:name "proton" + :url "***REMOVED***" + :file ,pcal-file) + (:name "deepsat" + :url "***REMOVED***" + :file ,dcal-file))) + +(provide 'calendar-sync.local) +;;; calendar-sync.local.el.example ends here |
