Gnus provides the gnus-notifications package that, combined with
a gnus-demon handler, can be used to notify you when fresh news
or mails arrive via desktop notifications. Here’s a basic configuration
to put in your ~/.gnus.el file:
(require 'gnus-notifications) (add-hook 'gnus-after-getting-new-news-hook #'gnus-notifications) (gnus-demon-add-handler #'gnus-demon-scan-news 15 3) ;every 15 minutes
The above will produce notifications for new arrivals when the
gnus-after-getting-new-news-hook hook runs, which is triggered
after retrieving news and mails with the gnus-demon-scan-news
procedure. The demon handler is configured to scan news every fifteen
minutes, once Emacs has been idle for three minutes.
Important:
gnus-notificationswill only emit notifications for groups whose level is equal or lower than gnus-notifications-minimum-level, which defaults to1, so make sure to set the level of the groups you want to be notified for to1, or adjust the value of gnus-notifications-minimum-level to your needs.