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

Make notifications (alerts) customisable #61

Open
srustamo opened this issue Aug 30, 2016 · 1 comment
Open

Make notifications (alerts) customisable #61

srustamo opened this issue Aug 30, 2016 · 1 comment

Comments

@srustamo
Copy link

srustamo commented Aug 30, 2016

Clearly some might like stock message alerts in these lines:

./org-pomodoro.el:479:  (org-pomodoro-notify "Pomodoro completed!" "Time for a break.")
./org-pomodoro.el:488:  (org-pomodoro-notify "Pomodoro killed." "One does not simply kill a pomodoro!")
./org-pomodoro.el:501:  (org-pomodoro-notify "Short break finished." "Ready for another pomodoro?")
./org-pomodoro.el:511:  (org-pomodoro-notify "Long break finished." "Ready for another pomodoro?")

For others, please consider making the messages optional, perhaps, customisable.

alert package can only handle an overall style of message from this package, but not individual messages, AFAIK, so tuning the individual messages from there does not seem to be an option.

@andersjohansson
Copy link
Contributor

This is possible through the customization options in alert though.
To customize how all notifications from org-pomodoro are displayed (through minibuffer messages in this case) one would do:

 (add-to-list 'alert-user-configuration '(((:category . "org-pomodoro")) message nil))

To customize a single of the alerts it is for example possible to match on title:

(add-to-list 'alert-user-configuration '(((:title . "Pomodoro completed!")) message 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

2 participants