diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 3dd74df..2c47ba8 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -3546,21 +3546,21 @@ With ARG, repeats or can move backward if negative." (defun my/update-org-agenda () (interactive) (let ((project-files - (mapcar - (lambda (f) (concat - org-directory "/projects/" - f)) - (seq-filter - (lambda (f) (not (file-directory-p f))) - (when (file-directory-p (concat org-directory "/projects")) - (directory-files - (concat org-directory "/projects"))))))) + (when (file-directory-p (concat org-directory "/projects")) + (thread-last "/projects" + (concat org-directory) + (directory-files) + (mapcar (lambda (f) + (concat + org-directory "/projects/" f))) + (seq-filter (lambda (f) + (not (file-directory-p f)))))))) (setq org-agenda-files (seq-filter #'file-exists-p - `("inbox.org" - "misc/habit.org" - "contacts.org" - ,@project-files))) + `("inbox.org" + "misc/habit.org" + "contacts.org" + ,@project-files))) (setq org-refile-targets `(,@(mapcar (lambda (f) `(,f . (:tag . "refile"))) @@ -3752,6 +3752,8 @@ With ARG, repeats or can move backward if negative." :after (org) :if (not my/remote-server) :straight t + :config + (setq org-ql-ask-unsafe-queries nil) :init ;; See https://github.com/alphapapa/org-ql/pull/237 (setq org-ql-regexp-part-ts-time @@ -3882,7 +3884,7 @@ TYPE may be `ts', `ts-active', `ts-inactive', `clocked', or (ivy-prescient-sort-commands nil) (categories (completing-read-multiple "Categories: " - '("TEACH" "EDU" "JOB" "LIFE" "CONFIG")))) + '("TEACH" "EDU" "JOB" "LIFE" "COMP")))) (org-ql-search (org-agenda-files) `(and (todo) ,@(unless (seq-empty-p categories) @@ -3896,6 +3898,7 @@ TYPE may be `ts', `ts-active', `ts-inactive', `clocked', or (cons "Review: Stale tasks" (list :buffers-files #'org-agenda-files :query '(and (todo) + (not (tags "nots")) (not (ts :from -14))) :title "Review: Stale tasks" :sort '(todo priority date) @@ -4173,23 +4176,23 @@ KEYS is a list of cons cells like (