emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

abbrev definition (manual)


From: Jean-Christophe Helary
Subject: abbrev definition (manual)
Date: Wed, 26 Jul 2017 08:18:46 +0900

I find the manual explanation for the definition of an abbrev confusing:

The usual way to define an abbrev is to enter the text you want the abbrev to 
expand to, position point after it, and type C-x a g (add-global-abbrev). This 
reads the abbrev itself using the minibuffer, and then defines it as an abbrev 
for one or more words before point. Use a numeric argument to say how many 
words before point should be taken as the expansion. For example, to define the 
abbrev ‘foo’ as mentioned above, insert the text ‘find outer otter’ and then 
type C-u 3 C-x a g f o o RET.

What about that:

The usual way to define an abbrev is to enter the text you want the abbrev to 
expand to, position point after it, and type C-x a g (add-global-abbrev).  Use 
a numeric argument to say how many words before point should be taken as the 
expansion.  This prompts for the abbrev itself in the minibuffer, and then 
defines it as an abbrev for the words specified before point.  For example, to 
define the abbrev 'foo' as mentioned above, insert the text 'find outer otter' 
and then type C-u 3 C-x a g f o o RET.

Jean-Christophe 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]