emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Using properties for diary-anniversaries


From: Nick Dokos
Subject: Re: [Orgmode] Using properties for diary-anniversaries
Date: Sun, 23 Jan 2011 20:16:35 -0500

address@hidden wrote:

> I have an anniversary list in Org Mode where entries have this format:
> 
> * John
>   :PROPERTIES:
>   :Name: John
>   :Birthday: 5 4 1900
>   :END:
> 
> I would like to add the "Birthday" and "Name" properties to Org Agenda
> automatically. What I have so far is:
> 
> %%(apply 'diary-anniversary (read (org-entry-get nil "Birthday"))) John
> 
> When I enter this line right after the properties, the anniversary is
> added at the correct date in the agenda. But I still have to enter the
> name manually.
> 

Try something like this:

%%(apply 'diary-anniversary (mapcar 'string-to-number (split-string 
(org-entry-get nil "Birthday")))) John is %d years old

HTH,
Nick



reply via email to

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