[oni-org] Add any org files to the agenda list
This commit is contained in:
parent
ddd2d044ac
commit
af880424a4
1 changed files with 6 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2021.0803.090051
|
;; Version: 2021.0812.213913
|
||||||
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti)
|
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -528,8 +528,11 @@ also move point to the start of the heading."
|
||||||
|
|
||||||
(setq org-agenda-files
|
(setq org-agenda-files
|
||||||
(cons org-default-notes-file
|
(cons org-default-notes-file
|
||||||
(when (file-exists-p "~/documents/org/projects/")
|
(mapcar (lambda (file) (expand-file-name file oni-org-exocortex-directory))
|
||||||
(directory-files "~/documents/org/projects/" t "\\.org\\'"))))
|
(split-string
|
||||||
|
(let ((default-directory oni-org-exocortex-directory))
|
||||||
|
(shell-command-to-string "egrep -l \"^\\\\*+ (TODO|WIP|BLOCKED|DONE|READ|READING|FINISHED|STOPPED|WATCH|WATCHING|WATCHED|LISTEN|LISTENING|CANCELLED)\" *.org"))
|
||||||
|
"\n" t))))
|
||||||
(setq org-agenda-tags-todo-honor-ignore-options t)
|
(setq org-agenda-tags-todo-honor-ignore-options t)
|
||||||
(setq org-agenda-todo-ignore-scheduled 'future)
|
(setq org-agenda-todo-ignore-scheduled 'future)
|
||||||
(setq org-agenda-restore-windows-after-quit t)
|
(setq org-agenda-restore-windows-after-quit t)
|
||||||
|
|
Loading…
Reference in a new issue