94

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
warren
  • 32,620
  • 21
  • 85
  • 124

7 Answers7

94

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

Chris Conway
  • 55,321
  • 43
  • 129
  • 155
  • 2
    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. – michael.bartnett Dec 08 '10 at 16:04
  • 1
    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 Mar 01 '11 at 13:06
  • @swdev - This is my experience too. – malcook Jan 17 '14 at 18:35
  • F10 works in 2021 with Emacs 27.1 ([built from source](https://pmortensen.eu/world2/2020/11/11/building-emacs-from-source-on-ubuntu-20-04/)) on Linux ([Ubuntu MATE 20.04](https://en.wikipedia.org/wiki/Ubuntu_MATE#Releases) (Focal Fossa) with [Cinnamon](https://en.wikipedia.org/wiki/Cinnamon_(desktop_environment))). – Peter Mortensen Mar 10 '21 at 20:29
16

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

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
stephanea
  • 1,108
  • 8
  • 10
7

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Richard
  • 281
  • 3
  • 6
7

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

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
crashmstr
  • 28,043
  • 9
  • 61
  • 79
5

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]
Drew
  • 29,895
  • 7
  • 74
  • 104
4

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

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
msudder
  • 505
  • 3
  • 14
3
M-x menu-bar-mode
JesperE
  • 63,317
  • 21
  • 138
  • 197