From: lisa-asket@perso.be
To: tomas@tuxteam.de, help-gnu-emacs@gnu.org
Subject: Menu functionality
Date: Sat, 10 Jul 2021 01:25:44 +0200 (CEST) [thread overview]
Message-ID: <ea-mime-60e8daf8-30ba-15c2c481@www-7.mailo.com> (raw)
In-Reply-To: <20210709121400.GC3074@tuxteam.de>
Have started doing a simple menu, and would like some feedback.
How do I go about introducing a `Menu Separator` and a `Drop-Down Sub-Menu` ?
(define-key-after global-map
[menu-bar diamer]
(cons "Diamer" (make-sparse-keymap "hoot hoot"))
'tools )
;; Creating a menu item, under the menu by the id “[menu-bar diamer]”
(define-key global-map
[menu-bar diamer nl]
'("Next Line" . next-line))
(define-key global-map
[menu-bar diamer pl]
'("Previous Line" . previous-line))
(define-key global-map
[menu-bar diamer oes]
'("Entry Sweep" . gilgamesh-entry-sweep))
(define-key global-map
[menu-bar diamer ohe]
'("Hide Entry" . hide-entry))
(define-key global-map
[menu-bar diamer ose]
'("Show Entry" . show-entry))
(define-key global-map
[menu-bar diamer ohb]
'("Hide Body" . hide-body))
(provide 'diamer)
next prev parent reply other threads:[~2021-07-09 23:25 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-09 11:55 Menu functionality lisa-asket
2021-07-09 12:14 ` tomas
2021-07-09 23:25 ` lisa-asket [this message]
2021-07-10 2:47 ` Jean Louis
2021-07-10 3:09 ` lisa-asket
2021-07-10 3:48 ` lisa-asket
2021-07-10 4:07 ` lisa-asket
2021-07-10 4:14 ` Jean Louis
2021-07-10 4:36 ` lisa-asket
2021-07-10 4:39 ` lisa-asket
2021-07-10 4:56 ` Jean Louis
2021-07-10 5:06 ` lisa-asket
2021-07-10 5:41 ` Jean Louis
2021-07-10 5:52 ` Beauty of Emacs Lisp Jean Louis
2021-07-10 6:17 ` Christopher Dimech
2021-07-10 5:59 ` Menu functionality lisa-asket
2021-07-10 17:44 ` Jean Louis
2021-07-10 19:21 ` lisa-asket
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ea-mime-60e8daf8-30ba-15c2c481@www-7.mailo.com \
--to=lisa-asket@perso.be \
--cc=help-gnu-emacs@gnu.org \
--cc=tomas@tuxteam.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.