Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminal-notifier style doesn't work #32

Open
shackra opened this issue Feb 20, 2016 · 4 comments
Open

terminal-notifier style doesn't work #32

shackra opened this issue Feb 20, 2016 · 4 comments

Comments

@shackra
Copy link

shackra commented Feb 20, 2016

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
Copy link

zhengpd commented Apr 21, 2016

@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
Copy link
Author

shackra commented Apr 21, 2016

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:
#32 (comment)

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

@dschaehi
Copy link

dschaehi commented Apr 28, 2016

  • In addition to adding (alert-add-rule) in my .emacs (or Preferences.el) file I had to change in function alert-notifier-notify in alert.el the string

"-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
Copy link

dschaehi commented Nov 7, 2016

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 #30
(setq alert-default-style (quote notifier))
(setq alert-user-configuration (quote ((nil notifier nil))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants