diff options
| author | Craig Jennings <c@cjennings.net> | 2026-02-04 05:41:08 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-02-04 05:41:08 -0600 |
| commit | d841867fc6b460cbd7ad420486557738479cec74 (patch) | |
| tree | b0491253876d212335a3c47ad2350e8d83c4cf09 | |
| parent | 5ab633fa720b155809d04ff78ce313e2084f419d (diff) | |
| download | dotemacs-d841867fc6b460cbd7ad420486557738479cec74.tar.gz dotemacs-d841867fc6b460cbd7ad420486557738479cec74.zip | |
refactor(calendar): move calendar URLs into calendar-sync.el
Consolidate calendar configuration within the module itself rather
than requiring setup in init.el. Improves module encapsulation.
| -rw-r--r-- | init.el | 20 | ||||
| -rw-r--r-- | modules/calendar-sync.el | 12 |
2 files changed, 16 insertions, 16 deletions
@@ -113,20 +113,7 @@ (require 'org-contacts-config) ;; fully integrated org-mode contacts management (require 'org-drill-config) (require 'org-export-config) -;; (require 'org-gcal-config) ;; DISABLED: Replaced by calendar-sync.el (one-way sync) - -;; Calendar sync (one-way: Google/Proton → Org) -(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))) -(require 'calendar-sync) + (require 'org-refile-config) ;; refile org-branches (require 'org-roam-config) ;; personal knowledge management in org mode @@ -150,8 +137,9 @@ ;; ------------------------- Personal Workflow Related ------------------------- -(require 'reconcile-open-repos) -(require 'local-repository) ;; local repository for easy config portability +(require 'calendar-sync) ;; sync calendars, must come after org-agenda +(require 'reconcile-open-repos) ;; review dirty repositories and reconcile +(require 'local-repository) ;; local repository for easy config portability ;; ------------------------------- Entertainment ------------------------------- diff --git a/modules/calendar-sync.el b/modules/calendar-sync.el index a121eaf8..a73c3471 100644 --- a/modules/calendar-sync.el +++ b/modules/calendar-sync.el @@ -90,6 +90,18 @@ Example: :url \"***REMOVED***" :file pcal-file)))") +;; Calendar sync (one-way: Google/Proton → Org) +(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))) + (defvar calendar-sync-interval-minutes 60 "Sync interval in minutes. Default: 60 minutes (1 hour).") |
