help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making new menu after Tools using keymap-set-after


From: uzibalqa
Subject: Re: Making new menu after Tools using keymap-set-after
Date: Tue, 18 Jul 2023 20:49:17 +0000





Sent with Proton Mail secure email.

------- Original Message -------
On Wednesday, July 19th, 2023 at 5:12 AM, Eli Zaretskii <eliz@gnu.org> wrote:


> > Date: Tue, 18 Jul 2023 16:56:05 +0000
> > From: uzibalqa uzibalqa@proton.me
> > Cc: help-gnu-emacs@gnu.org
> > 
> > > > How is 'keymap-set-after' supposed to be used to make a new menu after 
> > > > tools?
> > > 
> > > Similar to keymap-set, whose documentation of KEY is more detailed.
> > 
> > It is all very good, but how do I make a new menu after tools ?
> > Documentation just states that key is just a string, but is this so ?
> 
> 
> No, it says it's a string that key-valid-p will accept, and you can
> find further documentation in key-valid-p.

key-valid-p states that a valid key is a string consisting of one or more key
strokes (name of an event) separated by single space characters, surrounded by
angle brackets.

Would that mean 

  (keymap-set-after global-map
    <menu-bar mcp-topm> (cons "MCP" mcp-kdf) 'tools)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]