jwiegley / alert

A Growl-like alerts notifier for Emacs
Other
443 stars 67 forks source link

terminal-notifier style doesn't work #32

Open shackra opened 8 years ago

shackra commented 8 years ago

At work, I'm using Emacs for Mac OS X. I installed terminal-notifier using brew, and I cannot get my library to emit notifications using the terminal-notifier style provided by alert, everything I get on Message buffer is this:

hola mundo
[nil 22209 57989 289983 nil alert-remove-when-active (alert-message-remove (:message "hola mundo" :title "*scratch*" :icon nil :severity normal :category nil :buffer #<buffer *scratch*> ...)) nil 0]

Any idea what's going on? thanks!

zhengpd commented 8 years ago

@shackra This seems like the issue described in #30 . My solution is to call (alert-add-rule) before (alert "msg" :style 'notifier). This is a little strange, but it do send alert with terminal-notifier.

shackra commented 8 years ago

I don't have a Mac anymore, but thanks for the insight!

El miércoles 20 de abril del 2016 a las 2230 horas, Zheng Piaodan escribió:

@shackra This seems like the issue described in #30 . My solution is to call (alert-add-rule) before (alert "msg" :style 'notifier). This is a little strange, but it do send alert with terminal-notifier.


You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/jwiegley/alert/issues/32#issuecomment-212736604

👋 Pax et bonum. Jorge Araya Navarro https://es.gravatar.com/shackra

dschaehi commented 8 years ago

"-sender" "org.gnu.Emacs" to "-sender" "org.gnu.Aquamacs"

This is because I use Aquamacs in which case "org.gnu.Emacs" will cause an error.

dschaehi commented 8 years ago

By the way, if you use the emacs version from https://emacsformacosx.com/, then you might not be able to run the elisp function "executable-find" which is called in alert.el. You can solve this by downloading the emacs package "exec-path-from-shell" (from https://github.com/purcell/exec-path-from-shell).

Furthermore add the following to your .emacs file, because of https://github.com/jwiegley/alert/issues/30 (setq alert-default-style (quote notifier)) (setq alert-user-configuration (quote ((nil notifier nil))))