0

Let's say my capture template is bound to 't':

(defun my/captureTemplate ()
(interactive)
(org-capture "r")

This won't work as it will show me the whole list of potential templates to choose from. Thanks!

1
  • Please don't ask the same question in two places!
    – NickD
    Feb 9, 2021 at 16:43

1 Answer 1

1

This should be

(defun my/captureTemplate ()
  (interactive)
  (org-capture nil "r"))

as KEY is the second optional argument to org-capture.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.