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