aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d/modes/org.el
diff options
context:
space:
mode:
authorRaul Benencia <id@rbenencia.name>2023-02-03 08:23:14 -0800
committerRaul Benencia <id@rbenencia.name>2023-02-03 08:23:14 -0800
commitf0d83616a78458d1ca23b2bdf0e2773ab1ff4e5a (patch)
tree8f067bc71edefd1475cee18eacd6f14e871fbb39 /.emacs.local.d/modes/org.el
parent837f3af6c4f221ed78a558c95d52b1a2c192857f (diff)
emacs: add project and tasks view
Diffstat (limited to '.emacs.local.d/modes/org.el')
-rw-r--r--.emacs.local.d/modes/org.el54
1 files changed, 44 insertions, 10 deletions
diff --git a/.emacs.local.d/modes/org.el b/.emacs.local.d/modes/org.el
index 0a3910e..627b038 100644
--- a/.emacs.local.d/modes/org.el
+++ b/.emacs.local.d/modes/org.el
@@ -107,7 +107,49 @@
;; Based on Prot's config:
;; https://protesilaos.com/codelog/2021-12-09-emacs-org-block-agenda/
(setq my-org-agenda-custom-commands
- `(("A" "Daily agenda and top priority tasks"
+ `(("P" "Projects and tasks"
+ (
+ (tags-todo "-HOLD-CANCELLED/!"
+ ((org-agenda-overriding-header "\n🟢 Projects")
+ (org-agenda-skip-function 'bh/skip-non-projects)
+ (org-agenda-block-separator nil)
+ (org-tags-match-list-sublevels 'indented)
+ (org-agenda-sorting-strategy
+ '(category-keep))))
+
+ (tags-todo "-CANCELLED/!NEXT"
+ ((org-agenda-overriding-header (concat "\nâš¡Project Next Tasks\n"
+ (if bh/hide-scheduled-and-waiting-next-tasks
+ ""
+ " (including WAITING and SCHEDULED tasks)")))
+ (org-agenda-skip-function 'bh/skip-projects-and-habits-and-single-tasks)
+ (org-tags-match-list-sublevels t)
+ (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
+ (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
+ (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
+ (org-agenda-block-separator nil)
+ (org-agenda-sorting-strategy
+ '(todo-state-down effort-up category-keep))))
+
+ (tags-todo "-HOLD-CANCELLED/!"
+ ((org-agenda-overriding-header "\n🚫 Stuck Projects\n")
+ (org-agenda-skip-function 'bh/skip-non-stuck-projects)
+ (org-agenda-block-separator nil)
+ (org-agenda-sorting-strategy
+ '(category-keep))))
+ (tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
+ ((org-agenda-overriding-header (concat "\nâš¡Standalone Tasks\n"
+ (if bh/hide-scheduled-and-waiting-next-tasks
+ ""
+ " (including WAITING and SCHEDULED tasks)")))
+ (org-agenda-skip-function 'bh/skip-project-tasks)
+ (org-agenda-todo-ignore-scheduled bh/hide-scheduled-and-waiting-next-tasks)
+ (org-agenda-todo-ignore-deadlines bh/hide-scheduled-and-waiting-next-tasks)
+ (org-agenda-todo-ignore-with-date bh/hide-scheduled-and-waiting-next-tasks)
+ (org-agenda-sorting-strategy
+ '(category-keep))))
+ ))
+ ("A" "Daily agenda and top priority tasks"
(
(tags-todo "*"
(
@@ -179,20 +221,12 @@
(org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done))
))
- (tags-todo "-CANCELLED/!"
+ (tags-todo "-HOLD-CANCELLED/!"
((org-agenda-overriding-header "\n🚫 Stuck Projects\n")
(org-agenda-skip-function 'bh/skip-non-stuck-projects)
(org-agenda-block-separator nil)
(org-agenda-sorting-strategy
'(category-keep))))
-
- (tags-todo "-HOLD-CANCELLED/!"
- ((org-agenda-overriding-header "\n🟢 Projects")
- (org-agenda-skip-function 'bh/skip-non-projects)
- (org-agenda-block-separator nil)
- (org-tags-match-list-sublevels 'indented)
- (org-agenda-sorting-strategy
- '(category-keep))))
))
))
nihil fit ex nihilo