82 |
@item C-x a i l |
@item C-x a i l |
83 |
Define a word in the buffer as a mode-specific abbrev |
Define a word in the buffer as a mode-specific abbrev |
84 |
(@code{inverse-add-mode-abbrev}). |
(@code{inverse-add-mode-abbrev}). |
85 |
|
@item M-x define-global-abbrev @key{RET} @var{abbrev} @key{RET} @var{exp} @key{RET} |
86 |
|
Define @var{abbrev} as an abbrev expanding into @var{exp}. |
87 |
|
@item M-x define-mode-abbrev @key{RET} @var{abbrev} @key{RET} @var{exp} @key{RET} |
88 |
|
Define @var{abbrev} as a mode-specific abbrev expanding into @var{exp}. |
89 |
@item M-x kill-all-abbrevs |
@item M-x kill-all-abbrevs |
90 |
This command discards all abbrev definitions currently in effect, |
This command discards all abbrev definitions currently in effect, |
91 |
leaving a blank slate. |
leaving a blank slate. |
125 |
meaning of the two text strings they use (one from the buffer and one |
meaning of the two text strings they use (one from the buffer and one |
126 |
read with the minibuffer). |
read with the minibuffer). |
127 |
|
|
128 |
|
@findex define-mode-abbrev |
129 |
|
@findex define-global-abbrev |
130 |
|
You can define an abbrev without inserting either the abbrev or its |
131 |
|
expansion in the buffer using the command @code{define-global-abbrev}. |
132 |
|
It reads two arguments--the abbrev, and its expansion. The command |
133 |
|
@code{define-mode-abbrev} does likewise for a mode-specific abbrev. |
134 |
|
|
135 |
To change the definition of an abbrev, just define a new definition. |
To change the definition of an abbrev, just define a new definition. |
136 |
When the abbrev has a prior definition, the abbrev definition commands |
When the abbrev has a prior definition, the abbrev definition commands |
137 |
ask for confirmation before replacing it. |
ask for confirmation before replacing it. |