我想知道是否有人通过emacs shell使用ssh.我可以连接远程计算机,但我无法使用'emacs filename'打开文件来查看/编辑emacs,因为'终端类型'哑"功能不足以运行emacs"(通常emacs会在控制台内打开)通过终端连接).
尝试以这种方式使用emacs是一个坏主意,还是可以通过一些修复来实现?非常感谢!
hil*_*llu 41
初看起来可能并不明显,但是eshell,在Emacs Lisp中实现的shell可以正常工作tramp:
Welcome to the Emacs shell
~ $ uname -a
Linux local-machine 2.6.30-1-686 #1 SMP Thu Jul 30 14:45:30 UTC 2009 i686 GNU/Linux
~ $ cd /ssh:user@remote-machine:~
/ssh:user@remote-machine:/home/user $ uname -a
Linux remote-machine 2.6.18-6-686 #1 SMP Thu Aug 20 21:56:59 UTC 2009 i686 GNU/Linux
/ssh:user@remote-machine:/home/user $
Run Code Online (Sandbox Code Playgroud)
Ham*_*aya 17
Emacs有term-mode,这是一个完整的终端模拟器,你可以在emacs中运行emacs.您在终端上运行的任何内容都将以term-mode运行
emacs也有tramp模式,可以通过ssh打开文件.
/scp:user@ipOrHost#port:/
Run Code Online (Sandbox Code Playgroud)
它会来回传输文件.您只需编辑它们就像编辑本地文件一样.
不需要x11转发或其他恶作剧.
您可以使用ssh x forwarding来运行远程emacs并将其显示在本地计算机上.
我在Windows上使用Xming X Server
您可以使用ssh挂载远程文件系统并正常打开本地.
为此,我在Windows上使用ExpanDrive(商业应用程序)
您可以使用emacs Ange ftp而不是ssh它可以通过ftp和ssh打开远程文件.
我在Windows上使用它与cygwin