Configure appointment reminders, integrate with org-agenda

This commit is contained in:
Evie Litherland-Smith 2024-03-07 17:09:43 +00:00
parent cfcc92a9f6
commit 48fe3432d8

View file

@ -4,7 +4,20 @@
#+language: en #+language: en
#+filetags: :emacs:config:org: #+filetags: :emacs:config:org:
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent #+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
* Set up diary file
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq diary-file (locate-user-emacs-file "diary/inbox.gpg")) (setq diary-file (locate-user-emacs-file "diary/inbox.gpg"))
#+end_src #+end_src
* 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