From: uzibalqa <uzibalqa@proton.me>
To: uzibalqa via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Using a function hook to define an easy-menu
Date: Tue, 11 Jul 2023 11:08:55 +0000 [thread overview]
Message-ID: <LvbWVy239M2H-8I9h2rFK91iVYgxBwpEoC2NQH6CsvEhE-8X8xIKpYRwCX1Svwyp9rU6-vKJAhGZMvJ7tQlKLsz-qdShrzDqa8AXY4CmMOc=@proton.me> (raw)
Is it acceptable to use a function to define an easy-menu, then use
a hook to bind it to the minor mode ?
(defun tika-ezmenu-popup ()
(easy-menu-define tika-ezmenu tika-kymap "Tika Menu"
'("Tika Ezm"
["Hide Body" outline-hide-body t]
["Hide Entry" outline-hide-entry t]
"---"
["Show Entry" outline-show-entry t]
["Show All" outline-show-all t])))
(add-hook 'tika-minor-mode-hook #'tika-ezmenu-popup)
reply other threads:[~2023-07-11 11:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='LvbWVy239M2H-8I9h2rFK91iVYgxBwpEoC2NQH6CsvEhE-8X8xIKpYRwCX1Svwyp9rU6-vKJAhGZMvJ7tQlKLsz-qdShrzDqa8AXY4CmMOc=@proton.me' \
--to=uzibalqa@proton.me \
--cc=help-gnu-emacs@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.
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).