Text completion
Facts - Editor: emacs
Friday, 04 May 2007 22:08

One of the handiest functions within emacs is its completion of what you type. Unlike autocompletion in recent MS-Word and OpenOffice versions, text completion is not fully automatic within emacs.

In OpenOffice autocompletion occurs while you type. OpenOffice presents a likely completion of what you type and all you have to do is typing return. Because OpenOffice does this all the time it gives you many options you do not want, which is at least distracting.

Emacs does not offer automatic suggestions while you type but it does complete text when you type M-/ (press the ALT-key and then the forward slash and then release both keys.). If the completion is not what you expected then press C- x u (control x, release keys , u) or C-_ for undo. Instead of releasing the ALT-key you could also press the forward slash again and then releasing both keys to get another completion from emacs.

The emacs command for completion is dabbrev-expand.