org-clock.el: Make org-notify support macOS notification
* lisp/org-clock.el (org-show-notification): Add support for macOS notification.
This commit is contained in:
parent
4b7d80cb60
commit
b80b0a517d
|
@ -859,6 +859,10 @@ use libnotify if available, or fall back on a message."
|
|||
org-show-notification-timeout
|
||||
nil
|
||||
(lambda () (w32-notification-close id)))))
|
||||
((fboundp 'ns-do-applescript)
|
||||
(ns-do-applescript
|
||||
(format "display notification \"%s\" with title \"Org mode notification\""
|
||||
(replace-regexp-in-string "\"" "#" notification))))
|
||||
((fboundp 'notifications-notify)
|
||||
(notifications-notify
|
||||
:title "Org mode message"
|
||||
|
|
Loading…
Reference in New Issue