emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Capture template using variable
@ 2016-05-05 20:36 Karl Voit
  2016-05-05 20:45 ` Kaushal Modi
  0 siblings, 1 reply; 4+ messages in thread
From: Karl Voit @ 2016-05-05 20:36 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

Why is capture template 2 not working ("Invalid capture template")
and how can I fix it?

Thanks!


  (setq my-capture-template-next "* NEXT %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n\n")

  (setq org-capture-templates
    '(
      ("1" "first version with string" entry (file+headline "~/share/all/org-mode/misc.org" "shorts")
       "* NEXT %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n\n" :empty-lines 1)
      ("2" "second version with variable" entry (file+headline "~/share/all/org-mode/misc.org" "shorts")
       my-capture-template-next :empty-lines 1)
          ))


-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-05 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-05 20:36 Capture template using variable Karl Voit
2016-05-05 20:45 ` Kaushal Modi
2016-05-05 21:11   ` Karl Voit
2016-05-05 21:27     ` Karl Voit

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).