doomemacs/modules/app/calendar
Akhil Wali eb0b7f14a5
Encrypt and change location of org-gcal-token-file
* Move `org-gcal-token-file` to `doom-cache-dir`
* Encrypt `org-gcal-token-file` using GPG
* If old file exists, move it to new location with encryption
2020-05-04 08:59:39 +12:00
..
autoload.el
config.el Encrypt and change location of org-gcal-token-file 2020-05-04 08:59:39 +12:00
packages.el
README.org

app/calendar

Description

This module adds a calendar view for Emacs, with org and google calendar sync support.

Module Flags

This module provides no flags.

Configuration

Changing calendar sources

By defining your own calendar commands, you can control what sources to pull calendar data from:

(defun my-open-calendar ()
  (interactive)
  (cfw:open-calendar-buffer
   :contents-sources
   (list
    (cfw:org-create-source "Green")  ; orgmode source
    (cfw:howm-create-source "Blue")  ; howm source
    (cfw:cal-create-source "Orange") ; diary source
    (cfw:ical-create-source "Moon" "~/moon.ics" "Gray")  ; ICS source1
    (cfw:ical-create-source "gcal" "https://..../basic.ics" "IndianRed") ; google calendar ICS
   )))

To control what org files clfw:org-create-source will use, let-bind org-agenda-files around a call to +calendar/open-calendar like so:

;;;###autoload
(defun cfw:open-org-calendar-with-cal1 ()
  (interactive)
  (let ((org-agenda-files '("/path/to/org/" "/path/to/cal1.org")))
    (call-interactively #'+calendar/open-calendar)))

;;;###autoload
(defun cfw:open-org-calendar-with-cal2 ()
  (interactive)
  (let ((org-agenda-files '("/path/to/org/" "/path/to/cal2.org")))
    (call-interactively #'+calendar/open-calendar)))

The kiwanami/emacs-calfw project readme contains more examples.

Synchronizing Org and Google Calendar

The myuhe/org-gcal.el project README contains more detailed instructions on how to link your calendar with Google calendars.