From c435fc1e20278dfd38c6b54bb801d890f72eb754 Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Fri, 1 Jan 2021 00:00:36 +0000 Subject: [PATCH] Configure calendar/diary --- config.org | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/config.org b/config.org index 3799a68..3e8feef 100644 --- a/config.org +++ b/config.org @@ -180,6 +180,36 @@ (ido-mode t)))) #+end_src +* Calendar / Diary + Weeks start on Sunday by default, this can be changed to start on + Monday by setting [[help:calendar-week-start-day][calendar-week-start-day]] to 1: + + #+begin_src emacs-lisp + (setq calendar-week-start-day 1) + #+end_src + + Set latitute, longitude and location name to Bristol to get sunrise + and sunset times: + + #+begin_src emacs-lisp + (setq calendar-latitude 51.45) + (setq calendar-longitude -2.58) + (setq calendar-location-name "Bristol, UK") + #+end_src + + While the diary isn't an Org file, it's very much like an Org file + so I'm going to store in in =~/org=. + + #+begin_src emacs-lisp + (setq diary-file "~/org/diary") + #+end_src + + I want to use ISO-style dates in there: + + #+begin_src emacs-lisp + (calendar-set-date-style 'iso) + #+end_src + * Org I use a couple non-standard bits and pieces, but not a whole bunch. I really like the =