我正在尝试设置emacs,以便在学校的Win7机器上编辑我的私人服务器上的文件。
我已经设置了.emacs,更改了emacs中的默认方法:
(setq tramp-default-method "pscp")并下载了pscp和plink。
问题是,我不能在本地计算机上编辑%path%,也不能将pscp & plink放在%path%中的任何位置。我如何告诉Emacs在哪里可以找到它们?
编辑:原来我可以编辑环境变量,但它没有立即显示出来,还有一个不相关的问题。编辑与全局环境变量同名的user环境变量似乎会将user值附加到全局变量。
发布于 2012-03-23 11:37:50
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.https://stackoverflow.com/questions/9784735
复制相似问题