How do I get to the menu in Emacs in console mode?
EmacsEmacs Problem Overview
If you launch Emacs using the -nw
flag to force a console session (rather than an X session if you have X windows running), how do you get to the menu?
There are some items held in the menus that are infrequently-enough used on my part that I don't recall the escape or control sequence to do them.
Emacs Solutions
Solution 1 - Emacs
M-x menu-bar-open
, which is usually bound to F10
. This works with and without menu-bar-mode
(which just shows the names of the menus at the top of the screen).
Solution 2 - Emacs
On my computer (with openSUSE), it is not F10 but M-` which allows to access menu items. More information is available here:
Solution 3 - Emacs
The F10 key will access the menus for me in both Windows versions and a console version in Red Hat Linux (RHEL) 4.
Solution 4 - Emacs
F10 is inaccessible for ssh to a remote host over a Mac terminal.
How to get to the menu:
C-h b to get all the key bindings.
Use C-s to incrementally search on "menu" in the key bindings help. Hit C-s to find next and next occurrences.
See the ESC `?
Type ESC ` on the Mac and it will work.
Solution 5 - Emacs
La Carte (library lacarte.el) --------
It lets you execute menu commands from the keyboard, using completion:
ESC M-x
Menu command:
Menu command: t [TAB]
Menu command: Tools >
Menu command: Tools > Compa [TAB]
Menu command: Tools > Compare (Ediff) > Two F [TAB]
Menu command: Tools > Compare (Ediff) > Two Files... [RET]
Solution 6 - Emacs
For my Emacs and Mac setup, I found that Command + Fn + F10 creates a buffer showing Emacs menu-content selectable by a further keystroke.
Solution 7 - Emacs
M-x menu-bar-mode