From b222a8a3f54d78d98cbf49f80040df91f5618468 Mon Sep 17 00:00:00 2001 From: Sean Farley Date: Mon, 18 Dec 2023 13:47:43 -0800 Subject: [PATCH] mu4e: add support for macos notifications The current order in this patch is 1) macos notification 2) built-in dbus notification 3) fallback text notification because macOS emacs can actually have dbus enabled (for emacs daemon mode) but that doesn't support notifications. This is a built-in way to send a simple notification for macs, too. Yay! --- mu4e/mu4e-notification.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mu4e/mu4e-notification.el b/mu4e/mu4e-notification.el index f4a172ab..82271d8c 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