windows - Windows 上带有 pscp/plink 的 Emacs Tramp

标签 windows emacs tramp

我正在尝试设置 emacs 以在学校的 Win7 计算机上编辑我的私有(private)服务器上的文件。

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

(setq tramp-default-method "pscp")

并下载了 pscp 和 plink。

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

编辑: 事实证明我可以编辑环境变量它只是没有立即显示并且存在一个不相关的问题。编辑与全局变量同名的用户环境变量似乎会将用户值附加到全局变量。

最佳答案

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.

关于windows - Windows 上带有 pscp/plink 的 Emacs Tramp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9784735/

相关文章:

windows - 去安装在 Window 上不起作用?

email - 如何根据 "Reply-To:"生成动态的 "Message-ID:"? [+详细]

XP 上的 Emacs、tramp、plink 问题

android - 将 Emacs TRAMP 与不提供/bin/sh 的 ssh 服务器一起使用?

python - 无法删除sqlite数据库

c++ - Qt - 如何编译特定的插件/组件

python - 在 Windows 上的 Python 2.5 中下载时出现 urlopen 错误 10045、 'address already in use'

maven - 当测试失败时,使 Maven Failsafe 以非零状态退出?

emacs - 如何在emacs dired中为M命令(更改文件模式)提供递归选项(-R)?

emacs - 如何使用Emacs Tramp进行SSH双跳?