emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-capture-template: How to correctly capture email addresses?


From: Marius Hofert
Subject: Re: [O] org-capture-template: How to correctly capture email addresses?
Date: Tue, 8 Nov 2011 22:04:43 +0100

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: address@hidden
>  :URL:
>  :WORK:
>  :HOME:
>  :MOBILE:
>  :LOCATION:
>  :BIRTHDAY: 
>  :NOTE:
>  :END:
> 
> I obtain:
> 
> * My contact                         :my.tag:
>  :PROPERTIES:
>  :EMAIL:
>  :URL:
>  :WORK:
>  :HOME:
>  :MOBILE:
>  :LOCATION:
>  :BIRTHDAY: 
>  :NOTE:
>  :EMAIL: address@hidden
>  :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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]