emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Advance notice of birthdays in org-mode via org-contacts
Date: Mon, 27 May 2019 22:05:07 -0400	[thread overview]
Message-ID: <87lfyrl4fg.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: CAL9aZkt0zNR-zXc-jhtcP-O6Ry4w_-LT40N974jOjwjDsJEncA@mail.gmail.com

Daryl Manning <dwm+orgmode@wakatara.com> writes:

> I'm trying to come up with a better way to give myself advanced notice on some peoples' birthdays coming up. 
>
> Right now, I use the following in a `cal.org` file to give me notice in agenda that birthdays are coming up:
>
> ```
> * BDays                                                                         :bday:
> %%(org-contacts-anniversaries "BIRTHDAY")
> ```
>
> The generally feeds off a `contacts.org` entry of the nature:
>
> ```
> *** John Wick                                                  
> :PROPERTIES:
> :EMAIL: therealjdub@notthepuppy.com
> :BIRTHDAY: 1975-06-06
> :END:
> ```
>
> What I'd like is to get, on virtually all birthdays , a week's notice through due soon (which I'll sort out in org-super-agenda in the view). Alternatively, is there a nicer way to tag or
> otherwise note some birthdays in the `contacts.org` so that I could note special people (close friends, family, etc) where I could set a specific advanced notice period so that I have time
> to do something special for them etc?
>
> Would love to hear peoples' approaches to this. In general, if I'm not looking out 2 weeks ahead (I spend most time in the day view), I can get surprised.
>

I use bbdb, not org-contacts, and I have this in one of my agenda files:

* Anniversaries
       :PROPERTIES:
       :CATEGORY: Anniv
       :ID:       409062f6-6cb1-467f-b192-2dfcb7b384ca
       :END:
%%(org-bbdb-anniversaries-future)

That gives me the default 7 days of warning, but you can pass an
argument to it to specify the number of days of warning.

The function is fairly generic, so it should be possible to adapt it
to org-contacts with some modifications.

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler

  parent reply	other threads:[~2019-05-28  2:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-26 15:10 Advance notice of birthdays in org-mode via org-contacts Daryl Manning
2019-05-27 11:25 ` Neil Jerram
2019-05-27 18:17   ` Marcin Borkowski
2019-05-28  2:05 ` Nick Dokos [this message]
2019-05-28  2:34   ` Eric Abrahamsen
2019-05-28  6:38     ` Alan Schmitt
2019-05-28 16:31       ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lfyrl4fg.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).