Saturday, May 15, 2010

remove accidentally inserted words from your spelling dictionary for emacs

somehow, I accidentally inserted an incorrect word to my spelling dictionary in emacs.  Wow, it took me a while to figure out where my private dictionary is.

Below are my only configuration script for ispell in emacs:
(global-set-key (kbd "") 'ispell-word)
(global-set-key (kbd "") 'ispell)



So i thought I am using ispell and noticed  the following documenation for ispell:

Whenever ispell is started the file `.ispell_words' is read from
your home directory (if it exists). This file contains a list of
words, one per line. The order of the words is not important, but
the case is. Ispell will consider all of the words good, and will
use them as possible near misses.

Unfortunately, I didn't find such a file in my home directory. It turned out that I was using aspell in ispell mode. What the hell!

The private dictionary for aspell is located at
~/.aspell.en.pws

Finally solved the problem.