summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2023-12-22 21:27:45 +0200
committerGitHub <noreply@github.com>2023-12-22 21:27:45 +0200
commiteda3b9397fa06092c6d058ac51fd6f3c2fcb29da (patch)
tree5e384fa695417a99edfd6095404f2b010c2af5bc
parenta8f002bfa8fbcc79bcfe9888be35f20448e593e2 (diff)
parentbbb81eda94fe7e5cebfe6bc7e0592325e64bb96d (diff)
Merge pull request #2612 from seanfarley/smf/alert
mu4e: add support for macOS notifications
-rw-r--r--mu4e/mu4e-notification.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/mu4e/mu4e-notification.el b/mu4e/mu4e-notification.el
index d0a0c8a..dc52083 100644
--- a/mu4e/mu4e-notification.el
+++ b/mu4e/mu4e-notification.el
@@ -67,6 +67,9 @@ support."
(if (= delta-unread 1) "" "s")
(plist-get fav :name))))
(cond
+ ((fboundp 'do-applescript)
+ (do-applescript
+ (format "display notification %S with title %S" body title)))
((fboundp 'notifications-notify)
;; notifications available
(setq mu4e--notification-id