I am trying to build a 'cleanup' agenda view, with a section for all tasks which are done and a review section for tasks in the HOLD
or WAITING
states. HOLD and WAITING are states I've defined as incomplete in
(setq org-todo-keywords '(
(sequence "TODO(t)" "NEXT(n)" "|" "DONE(d)")
(sequence "HABIT(x)" "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE" "MEETING")))
I've tried to add a custom agenda command
("c" "Cleanup" ((todo '("WAITING" "HOLD")
etc, which I based off of the skip format, such as
(org-agenda-skip-function '(org-agenda-skip-entry-if 'todo '("NEXT" "HABIT")))
which works fine. As a view definition though, this doesn't work. What is a good way to get a view of only the specific TODO states I want without manually skipping every other state?