ChatGPT解决这个技术问题 Extra ChatGPT

How do I get to the menu in Emacs in console mode?

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.


C
Chris Conway

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).


Also, in case you're on Mac and have F10 bound to Expose, you can use Ctrl+F10 to get the same effect. Tested with a vanilla install of Emacs 23 from homebrew.
But, this way, we can not display menu bar of special buffer mode, isn't ? That is, in SVN buffer, we can not open SVN menu.
@swdev - This is my experience too.
F10 works in 2021 with Emacs 27.1 (built from source) on Linux (Ubuntu MATE 20.04 (Focal Fossa) with Cinnamon).
P
Peter Mortensen

On my computer (with openSUSE), it is not F10 but M-` which allows to access menu items. More information is available here:

http://linux.about.com/od/emacs_doc/a/emacsdoc317.htm


Worked on my Mac terminal and opens in a new buffer where you use simple key commands to move around and go to the menu items you want. e.g., 3
M-` calls tmm-menubar (text-mode-menu), which shows the menu options in a buffer, while F10 calls menu-bar-open, which lets you navigate the menubar in place. But if the menubar is off, F10 runs tmm-menubar.
link is broken.
The link is broken (404).
P
Peter Mortensen

The F10 key will access the menus for me in both Windows versions and a console version in Red Hat Linux (RHEL) 4.


P
Peter Mortensen

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.


D
Drew

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]

P
Peter Mortensen

For my Emacs and Mac setup, I found that Command + Fn + F10 creates a buffer showing Emacs menu-content selectable by a further keystroke.


J
JesperE
M-x menu-bar-mode

That looks like it turns the menu on and off