From: David Maus <dmaus@ictsoc.de>
To: Julien Fantin <julien.fantin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-capture-templates : should symbols work as a file target ?
Date: Mon, 05 Jul 2010 22:22:49 +0200 [thread overview]
Message-ID: <87630tispy.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <AANLkTikV_hTBcrif-gE4E5y5SJWbT_kUTctdTSpC3Neu@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 875 bytes --]
Julien Fantin wrote:
>Hi folks,
>I'v been trying to setup an org-capture template using a symbol as the file
>target, but this raises an error.
>Someone on IRC mentionned this is probably a bug, but I'm not experienced
>enough to be sure I'm not simply misusing it...
>Here is the bit of config in question:
>** Templates
>#+BEGIN_SRC emacs-lisp
>(setq org-capture-templates
> `(
> ("t" "Task" entry
> (file+headline organizer "Tasks")
> "* TODO %?\n%U")
> ("j" "Journal" entry
> (file+datetree "~/org/journal.org")
> "* %?\nEntered on %U\n %i\n %a")
> ))
>#+END_SRC
You already backquote the template list so you've just to but the
special marker , (comma) in front of organizer and it gets evaluated.
HTH
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-07-05 20:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-05 20:11 org-capture-templates : should symbols work as a file target ? Julien Fantin
2010-07-05 20:22 ` David Maus [this message]
2010-07-09 1:17 ` Glauber Alex Dias Prado
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87630tispy.wl%dmaus@ictsoc.de \
--to=dmaus@ictsoc.de \
--cc=emacs-orgmode@gnu.org \
--cc=julien.fantin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).