Stop using .agenda file, add literate config files to org-agenda-files
This commit is contained in:
parent
dd8b3a6668
commit
4c97ae0827
|
@ -98,13 +98,12 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
|
||||||
org-agenda-prefix-format '((agenda . " %-12:c%?-12t% s")
|
org-agenda-prefix-format '((agenda . " %-12:c%?-12t% s")
|
||||||
(todo . " %-12:c")
|
(todo . " %-12:c")
|
||||||
(tags . " %-12:c")
|
(tags . " %-12:c")
|
||||||
(search . " %-12:c")))
|
(search . " %-12:c"))
|
||||||
|
org-agenda-files (list (expand-file-name org-directory)
|
||||||
|
(locate-user-emacs-file "config")))
|
||||||
|
|
||||||
(let ((agenda-file (expand-file-name ".agenda" org-directory)))
|
(add-to-list 'org-refile-targets '(org-agenda-files :maxlevel . 1) t)
|
||||||
(if (file-exists-p agenda-file)
|
(add-to-list 'org-refile-targets '(org-agenda-files :tag . "inbox") t)
|
||||||
(list (setq org-agenda-files agenda-file)
|
|
||||||
(add-to-list 'org-refile-targets '(org-agenda-files :maxlevel . 1) t)
|
|
||||||
(add-to-list 'org-refile-targets '(org-agenda-files :tag . "inbox") t))))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* org-alert
|
* org-alert
|
||||||
|
|
Loading…
Reference in a new issue