emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dieter Faulbaum <mail@faulbaum.in-berlin.de>
To: "emacs-orgmoe@gnu.org" <emacs-orgmode@gnu.org>
Subject: Sugesstion for a more fexible org-bbdb-anniversary-description
Date: Mon, 30 Mar 2020 20:08:06 +0200	[thread overview]
Message-ID: <riemu7xium1.fsf@faulbaum.in-berlin.de> (raw)

I think it would be nice if this function would have some (customizable)

Here (in Germany) e.g. I like this:

(defun org-bbdb-anniversary-description (agenda-date anniv-date)
  (let ((delta (- (calendar-absolute-from-gregorian anniv-date)
                  (calendar-absolute-from-gregorian agenda-date))))
     ((= delta 0) "\\&")
     ((= delta 1) " (morgen)\\&")
     ((< delta org-bbdb-general-anniversary-description-after)
      (format " (in %d Tagen)\\&" delta))
     ((pcase-let ((`(,month ,day ,year) anniv-date))
	(format " (am %d.%d.)\\&" day month)))

And I think others would have other preferences.

Just an idea.
I'm sorry but I can't program lisp good enough to implement my idea
(without the shown hack).

             reply	other threads:[~2020-03-30 18:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30 18:08 Dieter Faulbaum [this message]
2020-05-23  9:03 ` Sugesstion for a more fexible org-bbdb-anniversary-description Bastien

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:

  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=riemu7xium1.fsf@faulbaum.in-berlin.de \
    --to=mail@faulbaum.in-berlin.de \
    --cc=emacs-orgmode@gnu.org \


* 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


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).