summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfpi2020-08-03 18:04:52 +0200
committerfpi2022-03-17 14:44:36 +0100
commit7dde44dfe6c35bd1496d7e8faf46fbf64e346ce0 (patch)
treee0e8cb29b953421eb839a94a4a5ada063be921b2
parentSet custom scheduled leaders for the agenda (diff)
Customize stuck project definition
Diffstat (limited to '')
-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.