From 27ac07e34aa02194a7f844465c4672a4397d4d3b Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 4 Feb 2026 05:41:08 -0600 Subject: 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. --- init.el | 20 ++++---------------- modules/calendar-sync.el | 12 ++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/init.el b/init.el index 00902206..ebec9d85 100644 --- a/init.el +++ b/init.el @@ -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).") -- cgit v1.2.3