首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Windows上使用pscp/plink的Emacs Tramp

在Windows上使用pscp/plink的Emacs Tramp
EN

Stack Overflow用户
提问于 2012-03-20 18:09:52
回答 1查看 1.1K关注 0票数 1

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

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

代码语言:javascript
复制
(setq tramp-default-method "pscp")

并下载了pscp和plink。

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

编辑:原来我可以编辑环境变量,但它没有立即显示出来,还有一个不相关的问题。编辑与全局环境变量同名的user环境变量似乎会将user值附加到全局变量。

EN

回答 1

Stack Overflow用户

发布于 2012-03-23 11:37:50

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

代码语言:javascript
复制
  -- 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.
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9784735

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档