Configure calendar/diary
This commit is contained in:
parent
75d062c5e6
commit
c435fc1e20
36
config.org
36
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 =<s= to insert a source block thing (which
|
||||
@ -376,6 +406,12 @@
|
||||
(setq org-agenda-window-setup 'current-window)
|
||||
#+end_src
|
||||
|
||||
Include events from my diary:
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq org-agenda-include-diary t)
|
||||
#+end_src
|
||||
|
||||
** Habits
|
||||
Habit tracking requires the habits org module to be loaded. This is
|
||||
done by adding the symbol ~'habits~ to [[help:org-modules][org-modules]], if it's not in
|
||||
|
Loading…
x
Reference in New Issue
Block a user