Function: abbrev-mode

abbrev-mode is an interactive and byte-compiled function defined in abbrev.el.gz.

Signature

(abbrev-mode &optional ARG)

Documentation

Toggle Abbrev mode in the current buffer.

In Abbrev mode, inserting an abbreviation causes it to expand and be replaced by its expansion.

This is a minor mode. If called interactively, toggle the Abbrev 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 the variable abbrev-mode(var)/abbrev-mode(fun).

The mode's hook is called both when the mode is enabled and when it is disabled.

View in manual

Probably introduced at or before Emacs version 18.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/abbrev.el.gz
(define-minor-mode abbrev-mode
  "Toggle Abbrev mode in the current buffer.

In Abbrev mode, inserting an abbreviation causes it to expand and
be replaced by its expansion."
  ;; It's defined in C, this stops the 'define-minor-mode' macro from
  ;; defining it again.
  :variable abbrev-mode)