www.delorie.com/gnu/docs/emacs/viper_20.html   search  
 
Buy the book!


Viper Is a Package for Emacs Rebels

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.7 Abbreviation Facilities

It is possible in Emacs to define abbrevs based on the contents of the buffer. Sophisticated templates can be defined using the Emacs abbreviation facilities. See section `Abbreviations' in The GNU Emacs Manual, for details.

Emacs also provides Dynamic Abbreviations. Given a partial word, Emacs will search the buffer to find an extension for this word. For instance, one can type `Abbreviations' by typing `A', followed by a keystroke that completed the `A' to `Abbreviations'. Repeated typing will search further back in the buffer, so that one could get `Abbrevs' by repeating the keystroke, which appears earlier in the text. Emacs binds this to ESC /, so you will have to find a key and bind the function dabbrev-expand to that key. Facilities like this make Vi's :ab command obsolete.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003