Re: [GNU ELPA] New package: caffeinate-mode
Lucas Christian <[email protected]> Sun, 26 Jul 2026 11:54:58 -0700
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <[email protected]> |
(re-sending with list CC'd... oops! still getting used to gnus) Stéphane Marks <[email protected]> writes: > On Sat, Jul 25, 2026 at 8:19 PM Lucas Christian <[email protected]> wrote: > > 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. The "System Sleep" menu name still looks a bit unnatural to me as well. Now trying "Sleep (Caffeinate)". By the way, would this be the correct way for a package to insert a menu item? (when (lookup-key global-map [menu-bar tools]) (easy-menu-add-item nil '("Tools") caffeinate-mode-menu-map "Games")) I noticed the menu survives the package getting unloaded with unload-feature, but not sure if there's a better way to do it. -- Lucas Christian [email protected]