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 | 27ac07e34aa02194a7f844465c4672a4397d4d3b (patch) | |
| tree | fe6bf1627653d028508ef15e6fac1ecee44dfb37 | |
| parent | 8f72ea0d77dd989d0324e59018cf92765450d8d5 (diff) | |
| download | dotemacs-27ac07e34aa02194a7f844465c4672a4397d4d3b.tar.gz dotemacs-27ac07e34aa02194a7f844465c4672a4397d4d3b.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).") |
