I currently have a keyboard shortcut bound to C-c t
that shows me all of the NEXTACTION items I have, no matter what headline level they're at. It works by using a kbd macro wherein I just typed C-c / N <RET>
, and that was enough to fill in everything I needed.
But now I would like that same shortcut to also show me WAITING items. I tried just recording the whole macro of C-c / NEXCTACTION|WAITING <RET>
, and assigning that, but for some reason it still seems to use the old macro. I don't have any idea what's going on there, it's almost like it's ignoring that I've changed the macro.
Looking at the function help for org-sparse-tree
directly, it seems that it accepts optional arguments, but I can't find any documentation describing how to use the function.
In short, all I want is a single keyboard shortcut that gives an org-sparse-tree on two keywords at the same time. Any ideas?
EDIT: This is the relevant part of my .emacs file:
(fset 'NEXTACTION-WAITING-org-tree
[?\C-c ?/ ?T ?N ?E ?X ?T ?A ?C ?T ?I ?O ?N ?| ?W ?A ?I ?T ?I ?N ?G return])
(defun nextaction-org-tree-fun ()
(progn
(switch-to-buffer (find-file "~/orgfiles/personalorg.org"))
(execute-kbd-macro (symbol-function 'NEXTACTION-WAITING-org-tree))))
(global-set-key (kbd "C-c t") (lambda ()
(interactive)
(nextaction-org-tree-fun)))