[oni-org] Load agenda files from org roam
This commit is contained in:
parent
5391e2cb31
commit
e1c791f6fd
1 changed files with 3 additions and 7 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||
;; Keywords: local
|
||||
;; Version: 2023.0822.170151
|
||||
;; Version: 2023.0911.210345
|
||||
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-bullets org-edna diminish all-the-icons olivetti form-feed org-pretty-table ob-async)
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
@ -40,7 +40,6 @@
|
|||
(require 'hydra)
|
||||
(require 'ob)
|
||||
(require 'ob-async)
|
||||
;; (require 'ol-man)
|
||||
(require 'org)
|
||||
(require 'org-clock)
|
||||
(require 'org-edna)
|
||||
|
@ -48,6 +47,7 @@
|
|||
(require 'org-faces)
|
||||
(require 'org-habit)
|
||||
(require 'org-protocol)
|
||||
(require 'org-roam)
|
||||
(require 'subr-x)
|
||||
(require 'yasnippet)
|
||||
|
||||
|
@ -618,11 +618,7 @@ also move point to the start of the heading."
|
|||
|
||||
(setq org-agenda-files
|
||||
(cons oni-org-todo-main-file
|
||||
(mapcar (lambda (file) (expand-file-name file oni-org-exocortex-directory))
|
||||
(split-string
|
||||
(let ((default-directory oni-org-exocortex-directory))
|
||||
(shell-command-to-string "grep -E -l \"^\\\\*+ (TODO|WIP|BLOCKED|DONE|READ|READING|FINISHED|STOPPED|WATCH|WATCHING|WATCHED|LISTEN|LISTENING|CANCELLED)\" *.org"))
|
||||
"\n" t))))
|
||||
(oni-org-roam-todo-files)))
|
||||
(setq org-agenda-tags-todo-honor-ignore-options t)
|
||||
(setq org-agenda-todo-ignore-scheduled 'future)
|
||||
(setq org-agenda-restore-windows-after-quit t)
|
||||
|
|
Loading…
Reference in a new issue