Julien Cubizolles <j.cubizol...@free.fr> writes:

> Matt Lundin <m...@imapmail.org> writes:
>
>> For advanced reminders of birthdays and the like, you could use a
>> diary-sexp:
>>
>> %%(diary-remind '(org-anniversary 1996 8 20) -7) Someone turns %s
>
> I'll give it a try thanks, but you need one line per birthday you want
> to be reminded of. It would be much easier to have just a field in bbdb
> to select these contatcs.

You could use a "calendar" agenda to look for upcoming birthdays
generated by org-bbdb-anniversaries:

--8<---------------cut here---------------start------------->8---
(add-to-list 'org-agenda-custom-commands
             '("c" "Calendar" agenda ""
                ((org-agenda-span 'month) 
                 (org-agenda-time-grid nil) ;;
                 (org-agenda-entry-types '(:timestamp :sexp)))))
--8<---------------cut here---------------end--------------->8---

If (for speed's sake) you wanted to limit the calendar just to
birthdays, you could create an org file with a single headline:

--8<---------------cut here---------------start------------->8---
* Birthdays
%%(org-bbdb-anniversaries)
--8<---------------cut here---------------end--------------->8---

...and then add an org-agenda-files line that points just to that
minimal file to the custom command above.

Matt

Reply via email to