* Menu and Submenus in functions
@ 2023-07-15 20:55 uzibalqa
0 siblings, 0 replies; only message in thread
From: uzibalqa @ 2023-07-15 20:55 UTC (permalink / raw)
To: uzibalqa via Users list for the GNU Emacs text editor
I am making a menu with the following calls
;; Make top menu gundit
(define-key-after global-map
[menu-bar mcp-menu]
(cons "MCP" (make-sparse-keymap "MCP")) 'tools)
;; Make submenu daphne
(define-key global-map
[menu-bar mcp-menu daphne-subm]
(cons "Daphne" (make-sparse-keymap "daphne")))
;; Make submenu latex
(define-key global-map
[menu-bar mcp-menu latex-subm]
(cons "Latex" (make-sparse-keymap "latex")))
Can I make an elisp function to make such menu ?
Would also like that the submenu definitions are
again defined in specific functions.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-15 20:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-15 20:55 Menu and Submenus in functions uzibalqa
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.