开发者

Emacs: How to view sftp folders

I'm running Ubuntu and playing with Emacs for the first time but unfortunately it doesn't seem to see any sftp folders I currently have mounted. These folder are visible to nautilus and gedit.

Can any experienced emac users point me in t开发者_如何学运维he right direction?


I'm not sure how to get Emacs to pick up specifically those servers that have been mounted under Nautilus.

However (and hopefully this meets your needs), you can still view and edit remote files and directories using Tramp if you know the server name:

C-x C-f /sftp:username@server.net:path/to/file.txt RET

or

C-x C-f /sftp:username@server.net:path/to/directory/ RET

Tramp documentation


Although tramp is more efficient, you can "drag and drop" it from $HOME/.gvfs/server.net/ into emacs. $HOME/.gvfs/server.net/ is where it's mounted locally.

Typically I drop the file into scratch where (as you've seen) it's expanded to a filename. Just modify that into an evaluatable function, evaluate it with "C-M-x":

(find-file "/sftp:username@server.net:/path/to/file.txt")

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜