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

pomm.el does not trigger a notification #11

Closed
elia-blue opened this issue Jan 23, 2024 · 2 comments
Closed

pomm.el does not trigger a notification #11

elia-blue opened this issue Jan 23, 2024 · 2 comments
Labels
question Further information is requested

Comments

@elia-blue
Copy link

I'm trying to get notifications for break/start work from pomm.el, but for some reason I cannot find the corrent configuration.

Configuration of pomm.el:

(use-package pomm
    :commands (pomm pomm-third-time)
    :config
    (pomm-mode-line-mode)

Configuration of alert.el:

(use-package alert
    :config
    (setq alert-default-style "notifier")
    )

I know for a fact that the alert configuration works, because I get notifications for Org Mode tasks.

Does someone know what I'm missing?

@SqrtMinusOne
Copy link
Owner

Unlike pomm.el, Org uses the built-in notifications.el instead of alert.el because alert.el is not a part of GNU Emacs.

I guess the problem is that your alert-default-style is set to something you system doesn't support. You can check by evaluating something like:

(alert "Foo")

If the notification doesn't show up, check the list of available styles here: https://github.com/jwiegley/alert/tree/master#builtin-alert-styles

And find one that works for you. 'notifications will probably work.

@SqrtMinusOne SqrtMinusOne added the question Further information is requested label Jan 23, 2024
@SqrtMinusOne
Copy link
Owner

Ahh, I haven't noticed.

The value of alert-default-style should be a symbol, not a string. So your config certainly won't work. If you want "notifier", try:

(setq alert-default-style 'notifier)

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

No branches or pull requests

2 participants