32.11 Using Word Abbreviation Mode
Like
vi
, Emacs provides an "abbreviation" facility. Its
traditional usage lets you define abbreviations for long words or
phrases so you don't have to type them in their entirety. For
example, let's say you are writing a contract which repeatedly
references the National Institute of Standards and Technology. Rather
than typing the full name, you can define the abbreviation
One use for word abbreviation mode is to correct misspellings as you
type. Almost everyone has a dozen or so words that they habitually
type incorrectly, due to some worn neural pathways. You can simply
tell Emacs that these misspellings are "abbreviations" for the correct
versions, and Emacs fixes the misspellings every time you type
them. If you take time to define your common typos as abbreviations,
you'll never have to be bothered with 32.11.1 Trying Word Abbreviations for One SessionUsually, if you go to the trouble of defining a word abbreviation, you will use it in more than one Emacs session. But if you'd like to try out abbreviation mode to see if you want to make it part of your startup, you can use the following procedure. To define word abbreviations for this session:
If you find that you like using word abbreviation mode, you may want to make it part of your startup, as described in the following section. 32.11.2 Making Word Abbreviations Part of Your StartupOnce you become hooked on abbreviation mode, make it part of your .emacs file so that you enter abbreviation mode and load the file of your word abbreviations and their definitions automatically. To define word abbreviations and make them part of your startup:
After you've followed this procedure the first time, you only need to
use steps 3 and 4 to define more abbreviations. When you add
word abbreviations in subsequent sessions, Emacs
asks whether you want to save the abbreviations file. Respond with a
If you define an abbreviation and later regret it, use edit-word-abbrevs to delete it. - |
|