From: lisa-asket@perso.be
To: "Jean Louis" <bugs@gnu.support>
Cc: help-gnu-emacs@gnu.org
Subject: Menu functionality
Date: Sat, 10 Jul 2021 07:06:30 +0200 (CEST) [thread overview]
Message-ID: <ea-mime-60e92ad6-15da-2990b7c8@www-7.mailo.com> (raw)
In-Reply-To: <YOkobN/hoVRAm2nE@protected.localdomain>
All help questions are personalised, don't you think?
Have done as follows. In the last one I used `menu-item`. I am new to this and
only been playing with menus a couple of days. Criticism could do some good.
--------
(define-key-after global-map
[menu-bar diamer]
(cons "Diamer" (make-sparse-keymap "Nanga Parbat"))
'tools )
;; Make menu item, under the menu by the id “[menu-bar diamer]”
(define-key global-map [menu-bar diamer diamer-next-line]
'("Next Line" . next-line))
(define-key global-map [menu-bar diamer diamer-previous-line]
'("Previous Line" . previous-line))
(define-key global-map [menu-bar diamer diamer-entry-sweep]
'("Entry Sweep" . gilgamesh-entry-sweep))
(define-key global-map [menu-bar diamer diamer-hide-entry]
'("Hide Entry" . hide-entry))
(define-key global-map [menu-bar diamer diamer-show-entry]
'("Show Entry" . show-entry))
(define-key global-map [menu-bar diamer diamer-hide-body]
'("Hide Body" . hide-body))
(define-key global-map [menu-bar diamer diamer-pdf]
'("Faddeev Pdf" . faddeev-pdf))
(define-key global-map [menu-bar diamer diammer-htm]
'("Faddeev Htm" . faddeev-htm))
(define-key global-map [menu-bar diamer diammer-html]
'(menu-item "Hide Body" outline-hide-body
:help "Hide all body lines in buffer"))
From: Jean Louis <bugs@gnu.support>
To: lisa-asket@perso.be
Subject: Re: Menu functionality
Date: 10/07/2021 06:56:12 Europe/Paris
Cc: help-gnu-emacs@gnu.org
* lisa-asket@perso.be <lisa-asket@perso.be> [2021-07-10 07:39]:
> I have been doing
> (define-key global-map
> [menu-bar diamer diamer-hide-body]
> '("Hide Body" . hide-body))
>
> Still, perhaps using `menu-item` could makes implementation better.
I understand that rather that you have got difficulties and you would
prefer personalized programming service to make it easier to your own
frame or viewpoint on how it should be. In general anything could be
better, we have no use of hypothetical statements. Best way to show
what is better is to make it, at least to give design proposal.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
next prev parent reply other threads:[~2021-07-10 5:06 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
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 [this message]
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-60e92ad6-15da-2990b7c8@www-7.mailo.com \
--to=lisa-asket@perso.be \
--cc=bugs@gnu.support \
--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.
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.