> From: Andy Moreton <andrewjmore...@gmail.com>
> Date: Tue, 11 Mar 2014 14:50:24 +0000
> 
> (when (eq system-type 'windows-nt)
>   (let ((dir (expand-file-name "PuTTY" (or (getenv "ProgramFiles(x86)")
>                                            (getenv "ProgramFiles")))))
>     (add-to-list 'exec-path dir)
>     (let ((case-fold-search t) (path (getenv "PATH")))
>       (unless (string-match (regexp-quote dir) path)
>         (setenv "PATH" (concat dir path-separator path))))))

I again recommend to change PATH directly, instead of doing the above.
Changing PATH will avoid confusion when invoking putty, plink, pscp,
etc. from other programs (e.g., git or svn) and from the command line.

IOW, if you use PuTTY, it makes sense to make it available all over
the system, not just from Emacs.

Reply via email to