Ispell and Abbrev, the Perfect Auto-Correct05 Jul 2014, by Artur Malabarba.
I am not a fantastic typist. My speed is acceptable, but I make a great deal of mistakes. The following snippet has turned me into the Messi of keyboards.
Whenever I make a typo:
- Hit C-x C-i, instead of erasing the mistake;
- Select the appropriate correction (thanks to Ispell);
- Sleep easier at night knowing I'll never see that mistake again (thanks to abbrev).
In my innocence, I had initially assigned this command to a 3-key sequence. It took me less then a month to realise it needed a shorter bind, I'd been using it 30 times a day.
Auto correction with abbrev is far from a new concept. Do you use anything similar?
The command now searches backward for the closest wrong word. So you can just hit C-x C-i even if the mistake happened several words ago.
Fixed some corner-case issues with the previous update.