Emacs Tramp w / pscp / plink在Windows上

时间:2012-03-20 10:09:52

标签: windows emacs tramp

我正在尝试设置emacs,以便从我们学校的Win7机器上编辑私人服务器上的文件。

我已经设置了emacs,更改了.emacs中的默认方法:

(setq tramp-default-method "pscp")

并下载了pscp&砰砰。

问题是,我无法编辑本地计算机上的%path%,我无法将pscp& plink在%path%中的任何位置。我如何告诉Emacs在哪里找到它们?

编辑: 结果我可以编辑它刚刚没有出现的环境变量,并且存在一个无关的问题。编辑与全局用户环境变量同名的用户环境变量似乎将用户值附加到全局变量。

1 个答案:

答案 0 :(得分:2)

Emacs'exec-path变量可能对此有所帮助:

  -- User Option: exec-path
     The value of this variable is a list of directories to search for
     programs to run in subprocesses.  Each element is either the name
     of a directory (i.e., a string), or `nil', which stands for the
     default directory (which is the value of `default-directory').

     The value of `exec-path' is used by `call-process' and
     `start-process' when the PROGRAM argument is not an absolute file
     name.