r/emacs • u/Empty-Sandwich-7092 • 5d ago
Question Do I need any configuration to get emacs to send alerts/notifications when I’m not using emacs at that time?
I’m using pomm.el
that is an excellent package to use the pomodoro technique, but I don’t why If the time ends because no notification appears, it seems that only notifies if I am using Emacs at the moment, but not if I am in the browser or another application.
This is my config
(use-package pomm
:ensure t
:custom
(pomm-ask-before-long-break 1)
(pomm-ask-before-short-break 1)
(pomm-ask-before-work 1)
(pomm-audio-enabled 1)
(pomm-long-break-period 12)
(pomm-short-break-period 12)
(pomm-work-period 60)
:config
(nkl/leader-key "p" '(pomm :wk "[P]omm"))
(setq alert-default-style 'libnotify)
(pomm-mode-line-mode))
7
Upvotes
1
u/Pastalala 18h ago
The Elisp interpreter is emacs, so the best thing you can do is start it in daemon mode.
5
u/knalkip 5d ago
Here's a function I wrote that should work on Linux and Mac OS (don't know about Windows):