While viewing org-mode
files I am used to typing , - / t
to produce a sparse tree of todo items.
I am trying, unsuccessfully, to write some Lisp to achieve the same thing.
Here's the sort of thing I'm playing with, added to my init file:
(defun my-sparse-todo ()
(interactive)
(org-sparse-tree nil "t"))
(define-key evil-normal-state-map [f10] 'my-sparse-todo)
If I run this by hitting f10
, I am prompted to enter the sparse tree type character.
What am I doing wrong please?