Emacs在Windows下可使用Plink.exe
来经过SSH访问编辑远程服务器上的文件。首先须要下载PuTTY,将PuTTY放在任意目录,而后在.emacs
之中加入:shell
elisp(require 'tramp) (setq exec-path (cons "E:/PuTTY" exec-path)) (setq tramp-default-method "plink") (setq tramp-shell-prompt-pattern "^[ $]+")
以后就可使用命令来打开远程服务器文件了,跟GNU/Linux下不太同样,少了SSH前缀:服务器
/users@localhost:/folder/file