Sof*_*mur 6 ssh emacs
我ssh用来连接到文件所在的远程机器。
ssh
建立连接后,如果我emacs the_file在终端中运行,而不是启动本地 Emacs,它会在终端内打开一个非常普通的编辑器......
emacs the_file
有谁知道如何在普通的 emacs 会话中打开这个文件?
xub*_*tix 7
你可以使用流浪汉。只需启动你的本地的Emacs,打开文件(CTRL + X + F),然后键入完整的地址是这样的:/the.server.name:/the/path/to/the/file。因此,假设服务器位于example.com并且文件位于/home/me/test.txt,则要键入的地址将为/example.com:/home/me/test.txt. 这将在本地 emacs 实例中打开文件。
/the.server.name:/the/path/to/the/file
example.com
/home/me/test.txt
/example.com:/home/me/test.txt
(请注意,这不需要额外的手动 ssh 连接。)
当然还有第二种选择,就是使用sshfs将远程目录挂载到本地地址,打开本地版本。
归档时间:
14 年,7 月 前
查看次数:
13187 次
最近记录:
13 年,4 月 前