Stop using .agenda file, add literate config files to org-agenda-files

This commit is contained in:
Evie Litherland-Smith 2024-02-15 12:12:53 +00:00
parent dd8b3a6668
commit 4c97ae0827

View file

@ -98,13 +98,12 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
org-agenda-prefix-format '((agenda . " %-12:c%?-12t% s")
(todo . " %-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)))
(if (file-exists-p agenda-file)
(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))))
(add-to-list 'org-refile-targets '(org-agenda-files :tag . "inbox") t)
#+end_src
* org-alert