diff options
| author | Sean Farley <sean@farley.io> | 2023-12-18 13:47:43 -0800 |
|---|---|---|
| committer | Sean Farley <sean@farley.io> | 2023-12-18 20:05:29 -0800 |
| commit | bbb81eda94fe7e5cebfe6bc7e0592325e64bb96d (patch) | |
| tree | 5e384fa695417a99edfd6095404f2b010c2af5bc | |
| parent | a8f002bfa8fbcc79bcfe9888be35f20448e593e2 (diff) | |
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!
| -rw-r--r-- | mu4e/mu4e-notification.el | 3 |
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 |
