Questions tagged [menus]
27 questions
4
votes
2 answers
How to go up one level in the menu-bar when using the keyboard to access menus
When I go many levels down into the menus in the menu bar, is there a way to go back up just one level? To illustrate:
Start Emacs
Press F10 to open the menu bar
Press Ctrlf to reach the "Edit" menu.
Press Ctrln repeatedly until the "Search"…

Flux
- 583
- 2
- 16
4
votes
1 answer
buffer menu unsort entries
Where can I handle how the control + left-click menu displays entries?
This is how it looks when it is displayed the way I want, i.e. with no fancy sorting by file type:
And this is how it looks when it tries to sort files for me...
It randomly…

Andrea Borga
- 261
- 1
- 4
- 9
4
votes
3 answers
How do I page when "ESC - (1 of n) [C-h paging/help]" shows in the emacs status bar?
I am an Emacs newbie having some problems navigating around when using the terminal, but pressing the ESC key brings up a huge list of key options which gives me the option of paging down and possibly select the right one, but any key I press seems…

vfclists
- 1,347
- 1
- 11
- 28
4
votes
2 answers
How to write a function with an interactive choice of the value of the argument?
How to write a function in Emacs Lisp that interactively would give the opportunity to choose one of the options?
Choose your animal: Cow Rabbit Dog
You have to press 1 to select Cow, 2 to select Rabbit and 3 to select Dog

Valeriy
- 377
- 4
- 16
3
votes
0 answers
How to advise code to keep popup menus within frame?
How to advise code that pops up menus (like the ones you get by left-clicking a major-mode indicator in the modeline) to stay within the current Emacs frame?
Background:
Probably this is a bug within my window manager. I have a multi-monitor setup…

jue
- 4,476
- 8
- 20
3
votes
3 answers
How can I create custom menu prompts in elisp?
I have two elisp functions:
$ cat ~/myelisp/myoptions.el
(defun get-my-name (arg)
"Prompt user to enter a string, with input history support."
(interactive
(list
(read-string "Enter your name: ")))
(message "Your name is %s."…

Brian Fitzpatrick
- 2,265
- 1
- 17
- 40
2
votes
1 answer
How to remove menu with easymenu?
Easymenu is great for creating menus, but how can you remove a top-level menu that was created with it?
Here's an example. A minor mode might create the following menu:
(easy-menu-define some-minor-mode-menu some-minor-mode-map
"Menu keymap…

GrB
- 207
- 1
- 6
2
votes
2 answers
How to use a menu to jump between sections of a document?
I would like to define my own rules for what a section of a document is, then use this so I can popup a list of sections I can auto-complete or use arrow keys to jump between them.
Take a simple example where sections match against ^SECTION\s(.*),…

ideasman42
- 8,375
- 1
- 28
- 105
2
votes
1 answer
menu navigation in source file
Is it available a mode that, entering a source file, scans it to find all the function, class and methods declarations and eventually install a menu that enables jumping around in the source file?
I used to use fume-mode (?) where fume is for…

gboffi
- 594
- 2
- 19
1
vote
1 answer
Changing the colours of menu-bar pop-ups (not of the menu-bar itself)
[Crossposting from gnu.emacs.help after getting no response there.]
With Emacs 27.1, in the terminal the standard colour scheme, the pop-ups of the menu I get via F10 have a blue background and with the foreground for menu items being either…

loris
- 315
- 4
- 10
1
vote
1 answer
How can I show a quick menu for the user from Emacs Lisp?
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…

Tom
- 1,190
- 7
- 16
1
vote
2 answers
Is there a way (a package?) to "redirect" pop-up menus to the minibuffer, ido, or completion buffer; either generic or flyspell-specific
Sometimes I must use Emacs (in X mode) over a network connection (for example, working on a cloud VM). I am pretty comfortable with the interface responsiveness inside a frame, although X is notoriously sensitive to network delays. But when it comes…
1
vote
1 answer
right click for menu with choices (to change font size)?
I am using emacs 26.1 under macos. when I right-click with the mouse, emacs seems to want to select the region. alas, I would prefer to see a popup menu where I can select a few choices that I would like to choose---save file, close buffer,…

ivo Welch
- 113
- 3
1
vote
2 answers
Command to invoke menu-bar's open-file?
The traditional way of opening a file is via C-x C-f (find-file). I don't know since when this has been the case, but in Emacs 27.0.50 (Linux), using the menu bar's File -> Open File invokes the GTK file selection dialog.
Since I prefer this…

prash
- 111
- 2
1
vote
0 answers
put menus, defined in packages, as submenu into own menu-bar menu
Introduction: The menu-bar is a nice institution of emacs to remember a command and its shortcut. Using then easy-menu-define for defining own menus is pretty awesome with regard to this purpose. So it is possible to cluster certain commands or…

jue
- 4,476
- 8
- 20