Function: org-capture-select-template
org-capture-select-template is a byte-compiled function defined in
org-capture.el.gz.
Signature
(org-capture-select-template &optional KEYS)
Documentation
Select a capture template.
Lisp programs can force the template by setting KEYS to a string.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-capture.el.gz
;;; The template code
(defun org-capture-select-template (&optional keys)
"Select a capture template.
Lisp programs can force the template by setting KEYS to a string."
(let ((org-capture-templates
(or (org-contextualize-keys
(org-capture-upgrade-templates org-capture-templates)
org-capture-templates-contexts)
'(("t" "Task" entry (file+headline "" "Tasks")
"* TODO %?\n %u\n %a")))))
(if keys
(or (assoc keys org-capture-templates)
(error "No capture template referred to by \"%s\" keys" keys))
(org-mks org-capture-templates
"Select a capture template\n========================="
"Template key: "
'(("C" "Customize org-capture-templates")
("q" "Abort"))))))