aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-09-11 21:03:54 -0700
committerGravatar Tom Willemse2023-09-11 21:03:54 -0700
commite1c791f6fd7af6704e86ab39753a477b16e44dc3 (patch)
treef3ef09c8e40173145c6653ac75c54dda5da4eba2
parent5391e2cb31b2d05e6d2e8007121da2a097cc3cee (diff)
downloademacs-config-e1c791f6fd7af6704e86ab39753a477b16e44dc3.tar.gz
emacs-config-e1c791f6fd7af6704e86ab39753a477b16e44dc3.zip
[oni-org] Load agenda files from org roam
-rw-r--r--oni-org/oni-org.el10
1 files changed, 3 insertions, 7 deletions
diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el
index 1f84c4f..d2dc28d 100644
--- a/oni-org/oni-org.el
+++ b/oni-org/oni-org.el
@@ -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)