From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Capture template using variable Date: Thu, 5 May 2016 22:36:16 +0200 Message-ID: <2016-05-05T22-34-16@devnull.Karl-Voit.at> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayQ0x-0002MJ-4k for emacs-orgmode@gnu.org; Thu, 05 May 2016 16:36:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayQ0l-0006W9-Ac for emacs-orgmode@gnu.org; Thu, 05 May 2016 16:36:45 -0400 Received: from plane.gmane.org ([80.91.229.3]:48805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayQ0l-0006SL-43 for emacs-orgmode@gnu.org; Thu, 05 May 2016 16:36:39 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ayQ0b-0007NA-1o for emacs-orgmode@gnu.org; Thu, 05 May 2016 22:36:29 +0200 Received: from friends.grml.info ([136.243.234.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2016 22:36:29 +0200 Received: from news1142 by friends.grml.info with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2016 22:36:29 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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