summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emacs-init.org11
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs-init.org b/emacs-init.org
index 0206424..4e51fb5 100644
--- a/emacs-init.org
+++ b/emacs-init.org
@@ -3448,6 +3448,7 @@ I use a org version with some custom patches. Rather than using something like =
`(
<<org-agenda-custom-commands>>
))
+ <<org-agenda-custom>>
:config
<<org-agenda-config>>
)
@@ -3933,6 +3934,16 @@ Based on https://github.com/psamim/dotfiles/blob/master/doom/config.el#L73.
org-clock-current-task))
(concat "-" tag)))
#+end_src
+****** Stuck projects
+The agenda can also list stuck projects with =C-c a #=. For this to be useful we have define what a stuck project is.
+
+A stuck project
+1. has any todo state of the states listed in ~org-project-keywords~
+2. does /not/ have a subtask with a state of =TODO=, =NEXT= or =INPROGRESS=.
+
+#+begin_src emacs-lisp :tangle no :noweb-ref org-agenda-custom
+(org-stuck-projects '("/+{PLANNING\\|READY\\|ACTIVE}" ("TODO" "NEXT" "INPROGRESS") nil ""))
+#+end_src
**** Refile
Use the full outline path so I can distinguish headlines with the same name & disable step-wise completion as I think from the refile target backwards, not from top-level downwards. Also include the current file's headings as a refile targets up to a deep level, all agenda files up to a small level and all open org files up to an even smaller level.