I found EasyMenu and and I tried the example:
(easy-menu-define my-menu global-map "My own menu" '("My Stuff" ["One entry" my-function t] ("Sub Menu" ["My subentry" my-obscure-function t])))
But when I try to show the menu with
M-x my-menu then it says:
my-menu must be bound to an event with parameters
So it apparently should be added to a keymap, so the user can activate it. But how can I show this menu from elisp? (like
(my-menu) or something)
So how can I programmatically show a simple menu like the above? I prefer built in solutions, so without external packages like Hydra and similiar.