[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to autoload easy-menu?

From: Eshel Yaron
Subject: Re: How to autoload easy-menu?
Date: Fri, 13 Oct 2023 09:13:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Hello Joseph,

Joseph Turner <joseph@breatheoutbreathe.in> writes:

> Joseph Turner <joseph@breatheoutbreathe.in> writes:
>> Would you someone kindly point me toward an example of an autoloaded
>> menu-bar using easymenu.el?
> Here's how we do it in hyperdrive.el now:
> https://git.sr.ht/~ushin/hyperdrive.el/tree/55c04f5d6071ca9737675af8374257a520313e51/item/hyperdrive.el#L1111
> The downside is that hyperdrive.el and its dependencies will now always
> be loaded when Emacs starts and `menu-bar-mode` is enabled.
> Please share your suggestions! Thank you!!

I've just installed `hyperdrive` and restarted Emacs.  Without changing
anything in my init file, I now see the "Hyperdrive" menu under "Tools"
in the menu bar.  Personally, I find that a little too intrusive, since
I don't expect merely installing a package to change Emacs without an
explicit toggle.  So my suggestion would be to add a global minor mode,
maybe called `hyperdrive-menu-mode`, that adds the "Hyperdrive" menu
under "Tools".  Then you can autoload `hyperdrive-menu-mode`, so users
just need to do call this mode in their init file if they so desire.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]