From 7dde44dfe6c35bd1496d7e8faf46fbf64e346ce0 Mon Sep 17 00:00:00 2001 From: fpi Date: Mon, 3 Aug 2020 18:04:52 +0200 Subject: Customize stuck project definition --- emacs-init.org | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 = `( <> )) + <> :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. -- cgit v1.2.3