2012-03-20 22 views
1

我试图在我的Win7机器上在我的私人服务器上设置emacs编辑文件。Windows上的Emacs Tramp w/pscp/plink

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

(setq tramp-default-method "pscp") 

和下载PSCP &砰砰。

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

编辑: 原来,我可以编辑环境变量,它只是没有立即显示,并有一个无关的问题。编辑与全局同名的用户环境变量似乎将用户值附加到全局变量。

+0

我甚至无法流浪汉向右通过SSH工作*我的Debian盒子内... – SamB 2012-03-23 03:31:11

回答

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.