Function: define-mode-abbrev
define-mode-abbrev is an interactive and byte-compiled function
defined in abbrev.el.gz.
Signature
(define-mode-abbrev ABBREV EXPANSION)
Documentation
Define ABBREV as a mode-specific abbreviation that expands into EXPANSION.
The characters in ABBREV must all be word-constituents in the current mode.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/abbrev.el.gz
(defun define-mode-abbrev (abbrev expansion)
"Define ABBREV as a mode-specific abbreviation that expands into EXPANSION.
The characters in ABBREV must all be word-constituents in the current mode."
(interactive "sDefine mode abbrev: \nsExpansion for %s: ")
(unless local-abbrev-table
(error "Major mode has no abbrev table"))
(abbrev--check-chars abbrev nil)
(define-abbrev local-abbrev-table (downcase abbrev) expansion))