Re: How to reset the idle timer?

[email protected]
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
On 2026-03-01, at 03:48, Stéphane Marks <[email protected]> wrote:

> You could give the new `system-sleep` package a try that is in Emacs 31 from master.  Register a hook on
> `system-sleep-event-functions` and your hook will be notified when the system is about to sleep or has woken up.  This will be
> more reliable than relying on timers, though, if you want to defer some of the work you could set a one-shot timer upon waking
> to do your work.

Ha, I had no idea this existed, thanks!  From a cursory reading it seems
that this feature is in its early days - it gives me a bit of a vibe of
an unpolished prototype - but it's definitely a great addition to Emacs!
I will certainly blog about is, since it is potentially very useful.
(Not to mention that it seems to bring Emacs even closer to an operating
system;-)).

Thanks,

-- 
Marcin Borkowski
https://mbork.pl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.