help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] Emacs 24 with tramp on windows 7 can't find plink


From: Eli Zaretskii
Subject: Re: [h-e-w] Emacs 24 with tramp on windows 7 can't find plink
Date: Tue, 11 Mar 2014 19:08:40 +0200

> From: Andy Moreton <address@hidden>
> 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

[Prev in Thread] Current Thread [Next in Thread]