10

I have entries in my org file similar to:

* Birthdays
:PROPERTIES:
:CATEGORY: birthday
:END:
%%(org-anniversary 1981 1 2) Harry (%d)

What I would like is for these to appear in the agenda (say) 2 weeks before they're due, similar to how a deadline works.

Is that possible?

  • 1
    If I remember correctly, the agenda doesn't yet handle this form of date entry (which is frustrating). – Dan Apr 7 '16 at 12:37
  • 2
    I wrote up a modification a while back to programmatically have birthdays and holidays appear in the agenda view. emacs.stackexchange.com/questions/10871/… You could modify the code in the answer to create duplicate entries at any interval prior to the birthday or holiday, and you could also change the colors to differentiate them, and you could also add some text -- "this is your 2 week prior notice . . ." :) I won't have any spare time until after the tax deadline to play with it, but your welcome to give it a whirl. – lawlist Apr 7 '16 at 16:07
  • Phew, that's quite a chunk of code! I only wanted it for one particular date, so it seems a bit overkill, thanks anyway though, much appreciated – Dave F Apr 13 '16 at 10:33
0

You can do something similar to how deadline works with the diary-remind function:

%%(diary-remind '(org-anniversary 1981 1 2) -14) Harry is %d

which shows up in the agenda as:

Reminder: Only N days until Harry is 38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.