2012-03-20 20 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.