Uncomfirmed fix of alert.el
This commit is contained in:
parent
6b1ccb0b4b
commit
7a92259a71
|
|
@ -2,6 +2,7 @@ tramp-autosave/
|
|||
tramp
|
||||
history
|
||||
ido.last
|
||||
network-security.data
|
||||
recentf
|
||||
eln-cache/
|
||||
elpa/
|
||||
|
|
|
|||
16
init.el
16
init.el
|
|
@ -217,6 +217,7 @@
|
|||
(use-package org-pomodoro
|
||||
:ensure t
|
||||
:after org
|
||||
:defer t
|
||||
:config
|
||||
(setq org-pomodoro-manual-break t)
|
||||
(setq org-pomodoro-keep-killed-pomodoro-time t)
|
||||
|
|
@ -240,9 +241,20 @@
|
|||
:ensure t
|
||||
:after org
|
||||
:config
|
||||
(setq alert-default-style 'libnotify)
|
||||
(setq alert-libnotify-command '(sound-alert))
|
||||
(alert-define-style 'custom-org-alert-notification
|
||||
:title "Custom Notification"
|
||||
:notifier
|
||||
(lambda (info)
|
||||
; 'info' is a plist containing :title, :message, :severity, etc.
|
||||
(sound-alert (concat "ORG ALERT: "
|
||||
;(plist-get info :title)
|
||||
(plist-get info :message)))))
|
||||
|
||||
(setq alert-default-style 'custom-org-alert-notification)
|
||||
(org-alert-enable)
|
||||
|
||||
; Update notifications whenever the agenda is refreshed
|
||||
(add-hook 'org-finalize-agenda-hook 'org-alert-enable)
|
||||
)
|
||||
|
||||
; Org Mode Journalling
|
||||
|
|
|
|||
Loading…
Reference in New Issue