From: Marius Hofert <marius.hofert@math.ethz.ch>
To: Emacs help <emacs-orgmode@gnu.org>
Subject: Re: org-capture-template: How to correctly capture email addresses?
Date: Tue, 8 Nov 2011 22:04:43 +0100 [thread overview]
Message-ID: <F527DFA7-E611-4DDE-9B11-0A94221E70E0@math.ethz.ch> (raw)
In-Reply-To: <E7ECE5A2-1544-4B51-BB50-0D97846C9639@math.ethz.ch>
see here: http://stackoverflow.com/questions/8037953/org-mode-how-to-correctly-capture-email-addresses
On 2011-11-06, at 11:49 , Marius Hofert wrote:
> Hi,
>
> I would like to capture contacts (name, email,..) with org-mode and thus setup the following in .emacs:
>
> (setq org-capture-templates
> '(("t" "TODO in ~/org/agenda.org -> Tasks" entry (file+headline "~/org/agenda.org" "Tasks")
> "* TODO %?\nSCHEDULED: %^t\n%U %a")
> ("c" "Contact in ~/org/contacts.org -> Contact" entry (file+headline "~/org/contacts.org" "Contact")
> "* %?%(org-contacts-template-name) %^g
> :PROPERTIES:
> :EMAIL: %(org-contacts-template-email)
> :URL:
> :WORK:
> :HOME:
> :MOBILE:
> :LOCATION:
> :BIRTHDAY:
> :NOTE:
> :END:")))
>
> I can easily capture contacts with C-c c c, it prompts for the name, a tag, and the email address. However, instead of an output like
>
> * My contact :my.tag:
> :PROPERTIES:
> :EMAIL: my.contact@my.mail.com
> :URL:
> :WORK:
> :HOME:
> :MOBILE:
> :LOCATION:
> :BIRTHDAY:
> :NOTE:
> :END:
>
> I obtain:
>
> * My contact :my.tag:
> :PROPERTIES:
> :EMAIL:
> :URL:
> :WORK:
> :HOME:
> :MOBILE:
> :LOCATION:
> :BIRTHDAY:
> :NOTE:
> :EMAIL: my.contact@my.mail.com
> :END:
>
> So the problem is that the first :EMAIL: is ignored and instead a second :EMAIL: is inserted before :END:. How can I obtain the correct output (as described above)?
>
> Cheers,
>
> Marius
next prev parent reply other threads:[~2011-11-08 21:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-06 10:49 org-capture-template: How to correctly capture email addresses? Marius Hofert
2011-11-08 21:04 ` Marius Hofert [this message]
2011-11-09 9:34 ` Christian Moe
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F527DFA7-E611-4DDE-9B11-0A94221E70E0@math.ethz.ch \
--to=marius.hofert@math.ethz.ch \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.