Cygwin and Emacs

Warning: Geeking ahead!

So I’ve been trying to reproduce a real operating system on Windows. The very first thing I did, of course, was install Emacs. Today I noticed that Emacs wasn’t finding RCS (my favorite version control system) even though I have Cygwin installed. I found the answer in noniq’s .emacs file:

   ;; This assumes that Cygwin is installed in C:cygwin (the
   ;; default) and that C:cygwinbin is not already in your
   ;; Windows Path (it generally should not be).
   (setq exec-path (cons "C:/cygwin/bin" exec-path))

You also need the next line, but WP won’t let me type it today because of this weird PHP/WP bug.

One Response to “Cygwin and Emacs”

  1. Jemima Says:

    It seems to be fixed now. The second line is:

    (setenv "PATH" (concat "C:cygwinbin;" (getenv "PATH")))

    By the way, noniq’s .emacs has gone 404, but you can find the same code chunk here: