unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Joseph Turner <joseph@breatheoutbreathe.in>
To: Emacs Devel Mailing List <emacs-devel@gnu.org>
Cc: Adam Porter <adam@alphapapa.net>
Subject: Re: How to autoload easy-menu?
Date: Thu, 12 Oct 2023 14:17:41 -0700	[thread overview]
Message-ID: <87pm1jv6r2.fsf@breatheoutbreathe.in> (raw)
In-Reply-To: <87o7h84ptr.fsf@breatheoutbreathe.in>


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!!

Joseph



  reply	other threads:[~2023-10-12 21:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-09  0:07 How to autoload easy-menu? Joseph Turner
2023-10-12 21:17 ` Joseph Turner [this message]
2023-10-13  7:13   ` Eshel Yaron
2023-10-14  4:35     ` Joseph Turner
2023-10-14 10:33       ` Eshel Yaron
2023-10-15  1:35         ` Joseph Turner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pm1jv6r2.fsf@breatheoutbreathe.in \
    --to=joseph@breatheoutbreathe.in \
    --cc=adam@alphapapa.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).