From e1c791f6fd7af6704e86ab39753a477b16e44dc3 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 11 Sep 2023 21:03:54 -0700 Subject: [oni-org] Load agenda files from org roam --- oni-org/oni-org.el | 10 +++------- 1 file 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 ;; 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) -- cgit v1.2.3-54-g00ecf