From: Bastien <bastienguerry@googlemail.com>
To: "Jason F. McBrayer" <jmcbray@carcosa.net>
Cc: org-mode list <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] org-show-notification will use todochiku.el if available
Date: Thu, 23 Jul 2009 17:41:03 +0200 [thread overview]
Message-ID: <87skgnbaxm.fsf@bzg.ath.cx> (raw)
In-Reply-To: <m1hbx4lfsd.fsf@bertrand.carcosa.net> (Jason F. McBrayer's message of "Wed, 22 Jul 2009 14:43:30 -0400")
Hi Jason,
thanks a lot for the idea. I have generalized this approach a bit by
adding a new option: org-show-notification-handler.
The value of this new variable can either be an elisp function or a
program. The function/program will be called with the notification
string as an argument.
So for example:
(setq org-show-notification-handler
'(lambda (notification)
(todochiku-message "org-mode notification" notification
(todochiku-icon 'emacs))))
should do what you want.
If this variable is nil, the notification mechanism falls back on
notify-send (if available) and the elisp message otherwise.
Thanks again!
--
Bastien
next prev parent reply other threads:[~2009-07-23 16:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-22 18:43 [PATCH] org-show-notification will use todochiku.el if available Jason F. McBrayer
2009-07-23 15:41 ` Bastien [this message]
2009-07-23 18:27 ` Jason F. McBrayer
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=87skgnbaxm.fsf@bzg.ath.cx \
--to=bastienguerry@googlemail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jmcbray@carcosa.net \
/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).