From 4509749a25113b191154591da5c048ee7706f211 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 9 Feb 2015 01:10:49 -0800 Subject: [PATCH] Fix org-notify and disable it. --- dotfiles/emacs.d/init.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 77d9c870..0e9f67af 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -743,9 +743,18 @@ the same tree node, and the headline of the tree node in the Org-mode file." ;;(add-to-list org-agenda-tag-filter-preset "+PRIORITY<\"C\"") (use-package org-notify + :disabled t :config (progn - (org-notify-add 'default '(:time "100m" :actions -notify/window + (defun imalison:org-notify-notification-handler (plist) + (sauron-add-event 'org-notify 4 (format "%s, %s.\n" (plist-get plist :heading) + (org-notify-body-text plist)))) + + (setq org-show-notification-handler 'imalison:org-notify-notification-handler) + + (org-notify-add 'default '(:time "1h" :actions imalison:org-notify-notification-handler + :period "2m" :duration 60)) + (org-notify-add 'default '(:time "100m" :actions imalison:org-notify-notification-handler :period "2m" :duration 60)) (org-notify-add 'urgent-second '(:time "3m" :actions (-notify/window -ding) :period "15s" :duration 10))