Emacs Windows Setup

Installing Emacs on Windows

  1. Download a copy of Emacs for Windows from here: http://ftp.gnu.org/gnu/emacs/windows/  Emacs comes as a zip file looking something like this:  emacs-24.3-bin-i386.zip         18-Mar-2013 22:43   47M 
  2. Unzip the folder to a suitable location, e.g. C:/Program Files
  3. That’s it.  There is no other installation required.
  4. To launch Emacs, run the runemacs.exe file in the emacs-XX.X\bin\ folder
  5. You will now have a functioning copy of Emacs.

Follow this link to my Emacs Tutorial

…You’ll probably find, however, that not all features are present.  Follow the steps below to add the remaining features.

If you’re looking for how to get Ediff or the spell checker to work in Windows, you’ve come to the right place.

Ispell (Spell Checker) on Windows Emacs

  1. Download Ispell: http://www.filewatcher.com/m/ispell.zip.352502-0.html
  2. M-x customize-variable and enter exec-path to include the path to ispell.exe
  3. Copy english.hash to emacs home folder. (You can find the path to your home folder by pasting the following into Emacs: (getenv “HOME”)  and pressing C-x C-e after the final bracket.)

M-x flyspell to turn on flyspell mode, which underlines misspelled words. Click with the centre mouse button on the misspelled word for a menu suggested changes.

I like to add the following to my .emacs file.  It maps the menu select option to the right mouse button.

(eval-after-load "flyspell" '(define-key flyspell-mode-map [down-mouse-3] 'flyspell-correct-word))

Install Cygwin

Cygwin is “a collection of tools which provide a Linux look and feel environment for Windows.”

Installing Cygwin is the easiest way to enable all those extra features in Emacs

  1. Go to http://cygwin.com/ and run the setup.exe file on the website
  2. Install the default set of packages
  3. If you want to be able to use org-mode to export to ODT documents in Windows, you’ll need to install zip and unzip from the archive package.
  4. On Emacs, set exec-path to c:\cygwin\bin (or to wherever you installed Cygwin) (If you don’t know how to set exec-path, the easiest way is M-x customize-variable, enter exec-path and then insert the path in one of the fields.  Don’t forget to save the changes)
  5. Add c:\cygwin\bin to your Windows path and restart the machine

Done.  Emacs should now by fully working on your Windows machine.

Related Posts

Leave a Comment