[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : Re: About Package using a menu
From: |
Heime |
Subject: |
RE: [External] : Re: About Package using a menu |
Date: |
Tue, 18 Oct 2022 20:14:06 +0000 |
Sent with Proton Mail secure email.
------- Original Message -------
On Tuesday, October 18th, 2022 at 6:14 PM, Drew Adams <drew.adams@oracle.com>
wrote:
> > Have been playing with constructing a "Xepty menu" with a "Daphne submenu",
> > but how do I make it to display?
>
>
> Keep reading.
>
> Node Menu Keymaps has everything you need.
> Node Menu Example shows you an example.
> Etc.
Have managed to display a parent menu. Would you holp a bit on how to insert a
submenu?
Here is the making of a parent menu "xepty-menu".
(defvar xepty-menu (make-sparse-keymap "xepty"))
(define-key-after global-map [menu-bar xepty-menu]
(cons "Xepty" (make-sparse-keymap "xepty"))
'tools )
--------------------
Here I want to make submenu "daphne-menu"
(define-key daphne-menu [xepty-menu]
'(menu-item "Continue Replace" multifile-continue
:help "Continue last tags replace operation"))
(define-key daphne-menu [xepty-menu]
'(menu-item "Replace in tagged files" tags-query-replace
:help "Interactively replace a regexp in all tagged files"))
(define-key daphne-menu [xepty-menu]
'(menu-item "--"))
----------------------------
How can I add submenu daphne-menu in the following?
(define-key global-map [menu-bar xepty-menu daphne]
'("Next Line" . next-line))
- RE: [External] : Re: About Package using a menu, (continued)
- RE: [External] : Re: About Package using a menu, Drew Adams, 2022/10/18
- RE: [External] : Re: About Package using a menu, Heime, 2022/10/18
- RE: [External] : Re: About Package using a menu, Drew Adams, 2022/10/18
- RE: [External] : Re: About Package using a menu, Heime, 2022/10/18
- RE: [External] : Re: About Package using a menu, Heime, 2022/10/18
- Re: [External] : Re: About Package using a menu, Jean Louis, 2022/10/19
- Re: [External] : Re: About Package using a menu, Emanuel Berg, 2022/10/19
- Re: [External] : Re: About Package using a menu, Heime, 2022/10/19
- Re: [External] : Re: About Package using a menu, Emanuel Berg, 2022/10/20
- RE: [External] : Re: About Package using a menu, Drew Adams, 2022/10/18
- RE: [External] : Re: About Package using a menu,
Heime <=
- RE: [External] : Re: About Package using a menu, Drew Adams, 2022/10/18
- RE: [External] : Re: About Package using a menu, Heime, 2022/10/18
- Re: RE: [External] : About Package using a menu, Christopher Dimech, 2022/10/18