GNU Emacs
Emacs
Dashboard

21.4 Mouse Clicks for Menus

Several mouse clicks with the Ctrl and SHIFT modifiers bring up menus.

C-mouse-1

This menu is for selecting a buffer.

The MSB (“mouse select buffer”) global minor mode makes this menu smarter and more customizable. See Customizing Buffer Menus.

C-mouse-2

This menu contains entries for examining faces and other text properties, and well as for setting them (the latter is mainly useful when editing enriched text; see Enriched Text).

C-mouse-3

This menu is mode-specific. For most modes if Menu-bar mode is on, this menu has the same items as all the mode-specific menu-bar menus put together. Some modes may specify a different menu for this button. If Menu Bar mode is off, this menu contains all the items which would be present in the menu bar—not just the mode-specific ones—so that you can access them without having to display the menu bar.

S-mouse-1

This menu is for changing the default face within the window’s buffer. See Text Scale.

Many GUI applications use mouse-3 to display context menus: menus that provide access to various pertinent settings and actions for the location and context of the mouse click. If you prefer this in Emacs over the default function of mouse-3, which is bound to the mouse-save-then-kill command (see Mouse Commands for Editing), you can enable the minor mode context-menu-mode. Then Emacs will show context menus when you click mouse-3. The exact contents of these context menus depends on the current major mode and the buffer contents around the place where you click the mouse. To customize the contents of the context menu, you can use the variable context-menu-functions (see Major Mode
Conventions
in The Emacs Lisp Reference Manual). You can also invoke the context menu by pressing S-F10.