Function: superword-mode
superword-mode is an autoloaded, interactive and byte-compiled
function defined in subword.el.gz.
Signature
(superword-mode &optional ARG)
Documentation
Toggle superword movement and editing (Superword mode).
This is a minor mode. If called interactively, toggle the Superword
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 superword-mode(var)/superword-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Superword mode is a buffer-local minor mode. Enabling it changes
the definition of words such that characters which have symbol
syntax are treated as parts of words: e.g., in superword-mode(var)/superword-mode(fun),
"this_is_a_symbol" counts as one word.
Probably introduced at or before Emacs version 24.4.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/subword.el.gz
;;;###autoload
(define-minor-mode superword-mode
"Toggle superword movement and editing (Superword mode).
Superword mode is a buffer-local minor mode. Enabling it changes
the definition of words such that characters which have symbol
syntax are treated as parts of words: e.g., in `superword-mode',
\"this_is_a_symbol\" counts as one word.
\\{superword-mode-map}"
:lighter " ²"
(when superword-mode (subword-mode -1))
(subword-setup-buffer))