2024-04-06 12:21:20 +01:00
|
|
|
#+title: Diary and Calendar config
|
2024-03-07 07:51:33 +00:00
|
|
|
#+author: Evie Litherland-Smith
|
|
|
|
#+email: evie@xenia.me.uk
|
|
|
|
#+language: en
|
|
|
|
#+filetags: :emacs:config:org:
|
|
|
|
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
|
2024-04-06 12:21:20 +01:00
|
|
|
* Diary
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(setopt diary-file (locate-user-emacs-file "diary/main.gpg")
|
|
|
|
diary-display-function #'diary-fancy-display)
|
|
|
|
(add-hook 'diary-list-entries-hook #'diary-include-other-diary-files)
|
|
|
|
(add-hook 'diary-list-entries-hook #'diary-sort-entries t)
|
|
|
|
(add-hook 'diary-mark-entries-hook #'diary-mark-included-diary-files)
|
|
|
|
#+end_src
|
2024-03-11 15:13:22 +00:00
|
|
|
* Calendar
|
2024-03-07 07:51:33 +00:00
|
|
|
#+begin_src emacs-lisp
|
2024-04-05 13:31:58 +01:00
|
|
|
(setopt calendar-date-style 'iso
|
2024-04-06 12:21:20 +01:00
|
|
|
calendar-view-holidays-initially-flag t
|
|
|
|
calendar-view-diary-initially-flag t)
|
2024-03-07 07:51:33 +00:00
|
|
|
#+end_src
|
2024-03-07 17:09:43 +00:00
|
|
|
* Appointment reminders
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(setq appt-display-diary nil ; Don't display diary on startup
|
|
|
|
appt-display-format 'echo
|
|
|
|
appt-display-interval 5
|
|
|
|
appt-message-warning-time 15)
|
|
|
|
(appt-activate +1)
|
|
|
|
#+end_src
|
|
|
|
** org-agenda integration
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(with-eval-after-load 'org
|
|
|
|
(add-hook 'org-agenda-mode-hook #'org-agenda-to-appt))
|
|
|
|
#+End_src
|