From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: org-bbdb-birthday reminder Date: Thu, 13 Aug 2015 08:07:13 -0500 Message-ID: <87lhdftjzy.fsf@fastmail.fm> References: <87a8ufdqte.fsf@free.fr> <871tf89qh8.fsf@fastmail.fm> <87wpwzlmpn.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPsE4-0007m4-CJ for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 09:07:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPsDz-0006RU-81 for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 09:07:20 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:58243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPsDz-0006RO-3y for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 09:07:15 -0400 In-Reply-To: <87wpwzlmpn.fsf@free.fr> (Julien Cubizolles's message of "Thu, 13 Aug 2015 08:35:48 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Julien Cubizolles Cc: emacs-orgmode@gnu.org Julien Cubizolles writes: > Matt Lundin 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