Function: context-menu-mode
context-menu-mode is an interactive and byte-compiled function defined
in mouse.el.gz.
Signature
(context-menu-mode &optional ARG)
Documentation
Toggle Context Menu mode.
When Context Menu mode is enabled, clicking the mouse button down-mouse-3 activates the menu whose contents depends on its surrounding context.
This is a global minor mode. If called interactively, toggle the
Context-Menu mode mode. If the prefix argument is positive, enable
the mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the mode
if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate (default-value \=context-menu-mode)'.
The mode's hook is called both when the mode is enabled and when it is disabled.
<down-mouse-3> <keymap> nil
<menu> context-menu-open
<mouse-3> nil
Probably introduced at or before Emacs version 28.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mouse.el.gz
(define-minor-mode context-menu-mode
"Toggle Context Menu mode.
When Context Menu mode is enabled, clicking the mouse button down-mouse-3
activates the menu whose contents depends on its surrounding context."
:global t)