Post

19 Word abbreviation commands

KeystrokesCommand nameAction
M-/dabbrev-expandComplete this word based on the nearest word that starts with this string (pressM-/ again if that’s not the word you want).
(none)abbrev-modeEnter (or exit) word abbreviation mode.
C-x a - or C-x a i ginverse-add-global-abbrevAfter typing the global abbreviation, type the definition.
C-x a i linverse-add-mode-abbrevAfter typing the local abbreviation, type the definition.
(none)unexpand-abbrevUndo the last word abbreviation.
(none)write-abbrev-fileWrite the word abbreviation file.
(none)edit-abbrevsEdit the word abbreviations.
(none)list-abbrevsView the word abbreviations.
(none)kill-all-abbrevsKill abbreviations for this session.

Word abbreviation capitalization

AbbreviationDefinitionYou type:Expands to:Because:
     
lclamb choplclamb choplc is lowercase, so lamb chop is lowercase.
lclamb chopLcLamb chopThere’s one capital inLc, so Lamb is capitalized.
lclamb choplCLamb chopThere’s one capital inlC, so Lamb is capitalized.
lclamb chopLCLamb ChopLC is all capitals, so both words are capitalized.
lcLamb ChoplcLamb ChopCapitals in the definition are always unchanged.
lcLamb ChopLCLamb ChopCapitals in the definition are always unchanged.
This post is licensed under CC BY 4.0 by the author.