Function: inverse-add-global-abbrev

inverse-add-global-abbrev is an interactive and byte-compiled function defined in abbrev.el.gz.

Signature

(inverse-add-global-abbrev N)

Documentation

Define the word before point as a global (mode-independent) abbreviation.

With prefix argument N, define the Nth word before point as the abbreviation. Negative N means use the Nth word after point.

This command reads the expansion from the minibuffer, defines the abbrev, and then expands the abbreviation in the current buffer.

See also add-global-abbrev, which performs the opposite task: if the expansion is already in the buffer, use that command to define an abbrev by specifying the abbreviation in the minibuffer.

View in manual

Probably introduced at or before Emacs version 19.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/abbrev.el.gz
(defun inverse-add-global-abbrev (n)
  "Define the word before point as a global (mode-independent) abbreviation.
With prefix argument N, define the Nth word before point as the
abbreviation.  Negative N means use the Nth word after point.

This command reads the expansion from the minibuffer, defines the
abbrev, and then expands the abbreviation in the current buffer.

See also `add-global-abbrev', which performs the opposite task:
if the expansion is already in the buffer, use that command
to define an abbrev by specifying the abbreviation in the minibuffer."
  (interactive "p")
  (inverse-add-abbrev global-abbrev-table "Global" n))