Emacs, Windows and Ispell

While installing emacs for windows is easy (just unzip the archive and add the bin path to %PATH%), installing ispell is a bit tricky.

Before proceeding remember to add the HOME environment variable for your user. In this way emacs will search for .emacs, dictionaries and other files in there. In my case I used the C:\Documents and Settings\myuser as home. Otherwise it will search for files in C:\.

Now assuming you have emacs up and running, let’s install ispell.

Following what I’ve found in the Learning GNU Emacs book, let’s download the windows binary of ispell. Unzip the archive.

Move ispell.exe into the emacs’ bin directory and move english.hash into your %HOME%. Also copy this file as american.hash.

Now run emacs, open a buffer in text mode, type something in correct english and something not, and try ispell by M-x ispell-buffer. You should get ispell asking you what to do.

If everything is fine, let’s install the Italian dictionary. Obviously if you wont type anything in Italian, you wont need this feature.

Download the Italian dictionary, and extract the archive. Now download another version of ispell for windows and extract the zip.

Now copy the italian.words and italian.aff from the italian dictionary directory into the bin directory of the last ispell downloaded. Now from that directory give the command

C:\...\bin>BUILDHAS.EXE italian.words italian.aff italian.hash

and copy the italian.hash created file into your %HOME%.

For toggling automatically ispell into italian, see my .emacs file.

Advertisements

2 thoughts on “Emacs, Windows and Ispell

  1. Tom says:

    Aspell is nicer than ispell on windows I think:

    http://aspell.net/win32/

    Moving ispell around is a bit yucky, could you try putting something in your .emacs like:

    (setq-default ispell-program-name “c:\\Program Files\\Aspell\\bin\\aspell.exe”)

    (change path to point to ispell)?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s