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

Does it works with MacOS X? #2

Closed
zilongshanren opened this issue Oct 18, 2015 · 13 comments
Closed

Does it works with MacOS X? #2

zilongshanren opened this issue Oct 18, 2015 · 13 comments
Labels

Comments

@zilongshanren
Copy link

I noticed that the screenshot is made under Linux, would it be possible to support MacOS X?
Thanks.

@iqbalansari
Copy link
Owner

It should be easy to make it work on MacOS X. Unfortunately I do not have access to a MacOS X machine, so I might not be able to provide a 'ready-to-use' snippet.

mu4e-alert uses alert to show desktop notifications, which supports a variety of styles. You need to configure mu4e-alert to use a style that works on your system.

Looking at alert's documentation it seems growl and notifier style should work on MacOS X. So if you have terminal-notifier installed, add something like the following to your init file to enable notifications using terminal-notifier

(mu4e-alert-set-default-style 'notifier)

Alternately if you have growl installed you can instruct mu4e-alert to use it by doing the following

(mu4e-alert-set-default-style 'growl)

Please try the above and report back if works (or even if it does not work)

Hope the above helps!

@iqbalansari
Copy link
Owner

@zilongshanren Hi, just wanted to know if any of the above methods worked for you

@iqbalansari
Copy link
Owner

Oops! I think I closed this by mistake

@iqbalansari iqbalansari reopened this Oct 20, 2015
@justmytwospence
Copy link

That method works for moi

@iqbalansari
Copy link
Owner

Great! I guess I will update the README with instructions for OSX and close this issue. Thanks @justmytwospence

@zilongshanren
Copy link
Author

@iqbalansari
Thanks, I will test it on my MacOS X.

@iqbalansari
Copy link
Owner

Closing this, I have added some instructions for enabling desktop notifications. to the README. Feel free to reopen if you face any issues or feel the documentation is not clear.

Thanks

@jkbellew
Copy link

jkbellew commented May 2, 2016

Hi. I have installed terminal-notifier on OS X and I still can't get the alerts. My .emacs file has the following lines:

(mu4e-alert-set-default-style 'notifier)
(add-hook 'after-init-hook #'mu4e-alert-enable-notifications)
(add-hook 'after-init-hook #'mu4e-alert-enable-mode-line-display)

And it doesn't seem to call terminal-notifier (same issue with growl). I have verified that the notifier works and there should be no issue. I do see the mode line updated but that is all.

Thanks in advance.

@iqbalansari
Copy link
Owner

Most probably this is because Emacs cannot find terminal-notifier binary. What is the output of M-:(executable-find "terminal-notifier")RET? Also could you please post the value of the variable alert-notifier-command?

@jkbellew
Copy link

jkbellew commented May 3, 2016

Things that I need to check. I verified that the binary was in my path but it is not found by Emacs. And there is no value for alert-notifier-command it states Symbol' s function definition is void: alert-notifier-command.

I'll go ahead and make sure that the binary is found and try again. The rest of this works pretty well, as the mode line shows me when I have mail.

@iqbalansari
Copy link
Owner

iqbalansari commented May 3, 2016

I verified that the binary was in my path but it is not found by Emacs.

That explains the lack of notifications. For testing quickly you can manually set alert-notifier-command to the full path to terminal-notifier and try again. In general I think exec-path-from-shell would be useful if you Emacs to see the same PATH as your shell

@jkbellew
Copy link

jkbellew commented May 3, 2016

I will have to check the exec path to make sure it is finding it.

I'll let you know.

Jason K Bellew
@theshaggyviking

On May 3, 2016, 14:55 -0400, Iqbal Ansarinotifications@github.com, wrote:

I verified that the binary was in my path but it is not found by Emacs.

The explains the lack of notifications. For testing quickly you can manually setalert-notifier-commandto the full path toterminal-notifierand try again. In general I thinkexec-path-from-shell(https://github.com/purcell/exec-path-from-shell)would be useful if you Emacs to see the same PATH as your shell


You are receiving this because you commented.
Reply to this email directly orview it on GitHub(#2 (comment))

@jkbellew
Copy link

jkbellew commented May 4, 2016

And it worked thanks. Once I set the command manually everything is coming up roses.

tarsius pushed a commit to emacsmirror/mu4e-alert that referenced this issue Mar 21, 2022
When switching contexts, wrong list of arguments passed to `advice-add`'s
inner `apply` function. This commit fixes it.

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

No branches or pull requests

4 participants