alert
alert copied to clipboard
`osx-notifier` not working for me
Hi, I'm on MacOS 15.6
osx-notifier simply doesn't work. Alerts show in the emacs log, but no system notifications.
Right now, I did this which worked:
(alert-define-style 'my-osx-notifier :title "My OSX Notifier"
:notifier
(lambda (info)
;; The :category of the alert
(plist-get info :category)
;; The major-mode this alert relates to
(plist-get info :mode)
;; The buffer the alert relates to
(plist-get info :buffer)
;; Severity of the alert. It is one of:
;; `urgent'
;; `high'
;; `moderate'
;; `normal'
;; `low'
;; `trivial'
(plist-get info :severity)
;; Whether this alert should persist, or fade away
(plist-get info :persistent)
;; Data which was passed to `alert'. Can be
;; anything.
(plist-get info :data)
(when (fboundp 'ns-do-applescript)
(ns-do-applescript
(format "display notification \"%s\" with title \"%s\" sound name \"Glass\""
(plist-get info :title)
(plist-get info :message)))))
;; Removers are optional. Their job is to remove
;; the visual or auditory effect of the alert.
;; :remover
;; (lambda (info)
;; ;; It is the same property list that was passed to
;; ;; the notifier function.
;; )
)