Org-mode properties for Emacs diary anniversaries?

Posted by lecodesportif on Stack Overflow See other posts from Stack Overflow or by lecodesportif
Published on 2010-04-05T23:59:31Z Indexed on 2010/04/06 0:23 UTC
Read the original article Hit count: 860

Filed under:
|
|

I am trying to have the "Birthday" property of an Org-mode contact entry added to the agenda automatically:

* John
  :PROPERTIES:
  :Name: John
  :Birthday: 5 4 1900
  :END:

This can be done manually for each entry using:

%%(diary-anniversary 5 4 1900) John's birthday

But I don't want to type the date twice. I would like to use the org-entry-get functionality to make diary-anniversary take the values of the Birthday and Name (see the bold text above) properties.

This is how I get the correct property values.

%%(org-entry-get nil "Name")
%%(org-entry-get nil "Birthday")

But after several attempts, I still haven't managed to put the values in variables and pass them correctly to diary-anniversary. Any ideas how to do it?

© Stack Overflow or respective owner

Related posts about emacs

Related posts about org-mode