Variable: transient-mark-mode
transient-mark-mode is a customizable variable defined in buffer.c.
Value
t
Documentation
Non-nil if Transient Mark mode is enabled.
See the command transient-mark-mode(var)/transient-mark-mode(fun) for a description of this minor mode.
Non-nil also enables highlighting of the region whenever the mark is active.
The region is highlighted with the region face.
The variable highlight-nonselected-windows controls whether to highlight
all windows or just the selected window.
Lisp programs may give this variable certain special values:
- The symbol lambda enables Transient Mark mode temporarily.
The mode is disabled again after any subsequent action that would
normally deactivate the mark (e.g. buffer modification).
- The pair (only . OLDVAL) enables Transient Mark mode
temporarily. After any subsequent point motion command that is
not shift-translated, or any other action that would normally
deactivate the mark (e.g. buffer modification), the value of
transient-mark-mode(var)/transient-mark-mode(fun) is set to OLDVAL.
Probably introduced at or before Emacs version 19.31.
Key Bindings
Source Code
// Defined in /usr/src/emacs/src/buffer.c
DEFVAR_LISP ("transient-mark-mode", Vtransient_mark_mode,
doc: /* Non-nil if Transient Mark mode is enabled.
See the command `transient-mark-mode' for a description of this minor mode.
Non-nil also enables highlighting of the region whenever the mark is active.
The region is highlighted with the `region' face.
The variable `highlight-nonselected-windows' controls whether to highlight
all windows or just the selected window.
Lisp programs may give this variable certain special values:
- The symbol `lambda' enables Transient Mark mode temporarily.
The mode is disabled again after any subsequent action that would
normally deactivate the mark (e.g. buffer modification).
- The pair (only . OLDVAL) enables Transient Mark mode
temporarily. After any subsequent point motion command that is
not shift-translated, or any other action that would normally
deactivate the mark (e.g. buffer modification), the value of
`transient-mark-mode' is set to OLDVAL. */);