我正在尝试设置 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/