summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2010-09-02 23:51:22 +0200
committerBastien Guerry <bzg@altern.org>2010-09-02 23:51:22 +0200
commitfea907285c4f37e2ceb724616732bac7a66c1e2e (patch)
treee1b4c403fc04e7c1282aebb244e2290126e106fb
parent58a49d173957198755939246618f08d11e37b9a1 (diff)
downloadorg-mode-fea907285c4f37e2ceb724616732bac7a66c1e2e.tar.gz
org-show-notification: use notifications.el when available.
notifications.el is a new package from Julien Danjou, available in Emacs 24.1. From etc/NEWS: ,---- | ** notifications.el provides an implementation of the Desktop | Notifications API. It requires D-Bus for communication. `----
-rw-r--r--lisp/org-clock.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index a0757c7..3328609 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -557,6 +557,13 @@ use libnotify if available, or fall back on a message."
((stringp org-show-notification-handler)
(start-process "emacs-timer-notification" nil
org-show-notification-handler notification))
+ ((featurep 'notifications)
+ (notifications-notify
+ :title "Org-mode message"
+ :body notification
+ ;; FIXME how to link to the Org icon?
+ ;; :app-icon "~/.emacs.d/icons/mail.png"
+ :urgency 'low))
((org-program-exists "notify-send")
(start-process "emacs-timer-notification" nil
"notify-send" notification))