Function: define-global-abbrev

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

Signature

(define-global-abbrev ABBREV EXPANSION)

Documentation

Define ABBREV as a global abbreviation that expands into EXPANSION.

The characters in ABBREV must all be word constituents in the standard syntax table.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/abbrev.el.gz
(defun define-global-abbrev (abbrev expansion)
  "Define ABBREV as a global abbreviation that expands into EXPANSION.
The characters in ABBREV must all be word constituents in the standard
syntax table."
  (interactive "sDefine global abbrev: \nsExpansion for %s: ")
  (abbrev--check-chars abbrev 'global)
  (define-abbrev global-abbrev-table (downcase abbrev) expansion))