Track org-agenda-files in separate file inside org-directory
This commit is contained in:
parent
c29e4e2609
commit
f8904dad32
|
@ -493,8 +493,6 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
|
|||
#+begin_src emacs-lisp :results output silent
|
||||
(setq org-agenda-span 'fortnight
|
||||
org-agenda-start-on-weekday 1
|
||||
org-agenda-files (list (expand-file-name org-directory)
|
||||
(expand-file-name "journal" org-directory))
|
||||
org-agenda-sticky nil
|
||||
org-agenda-window-setup 'current-window
|
||||
org-agenda-tags-column 0
|
||||
|
@ -502,6 +500,10 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
|
|||
(todo . " %-12:c")
|
||||
(tags . " %-12:c")
|
||||
(search . " %-12:c")))
|
||||
|
||||
(let ((agenda-file (expand-file-name ".agenda" org-directory)))
|
||||
(if (file-exists-p agenda-file)
|
||||
(setq org-agenda-files agenda-file)))
|
||||
#+end_src
|
||||
|
||||
** org-alert
|
||||
|
|
Loading…
Reference in a new issue