Re: [GNU ELPA] New package: caffeinate-mode

Stéphane Marks <[email protected]> Sun, 26 Jul 2026 15:35:35 +0200
Newsgroups gmane.emacs.devel
Message-ID <CAN+1Hbo=nTKw=yJTLnsCTCgn=Wk0gCqW4qF7MDMpXNMPfCwrkA@mail.gmail.com>
On Sat, Jul 25, 2026 at 8:19 PM Lucas Christian <[email protected]> wrote:

> Stéphane Marks <[email protected]> writes:
>
> > You could call caffeinate-block-display-sleep
> caffeinate-block-display-sleep-default.  And rather than pollute (not being
> > impolite) the main menu with caffeinate-mode menu, consider doing what
> project.el does with its menu accessible via its
> > mode-line lighter.  See project-mode-line-map and the function
> project-mode-line-format.
>
> It definitely was not supposed to be in the main menu. I did not realize
> that was the default behavior of easy-menu-define.
>
> Fixed in d8ef9fc1935b5e9011ee71465f1145d1711dfe85.
>
> I also re-worked the menu and added a global placement under "Tools" in
> 0b22d3a4c0e9d5aa3fd23330a5b562b41e56f397. You may hate that I called the
> menu "System Sleep" though ;). I think it's the most discoverable, but
> would settle for "System Sleep (Caffeinate)" or just "Caffeinate" if you
> want to reserve "System Sleep" for future functionality of your package.
>

I see system-sleep as the low-level package that provides underlying
cross-platform facilities.  You could call the menu simply "Sleep..." if
you think that's even simpler.