Evie Litherland-Smith
cedbce5e9c
Add work diary, partially filled in at the moment Import bin collection calendar Add (empty) email diary file to add accepted email events to
36 lines
1.2 KiB
Org Mode
36 lines
1.2 KiB
Org Mode
#+title: Diary and Calendar config
|
|
#+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
|
|
* 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
|
|
* Calendar
|
|
#+begin_src emacs-lisp
|
|
(setopt calendar-date-style 'iso
|
|
calendar-mark-holidays-flag t
|
|
calendar-mark-diary-entries-flag nil
|
|
calendar-view-holidays-initially-flag nil
|
|
calendar-view-diary-initially-flag nil)
|
|
#+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
|