0

Suppose I bound org-capture with C-c c and a tmp template with t:

(setq org-capture-templates
    `(
      ("t" "tmp"
       entry (file ,(concat captures-path "tmp.org"))
       "* %?" :empty-lines 1)
      ))

C-c ct opens tmp.

Now, if I want to add a new keybinding to tmp, for example C-c m, how could I refer to tmp? I.e., in the following example, what would replace ????

(use-package org-capture
  :bind 
  ("C-c m" . ???)
  )

1 Answer 1

2

This should do the trick:

(use-package org-capture
  :bind 
  ("C-c m" . (lambda () "Open tmp capture window"
               (interactive)
               (org-capture nil "t"))))

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.