[英]Emacs desktop doesn't remember TRAMP connections?
I use emacs to edit scripts and code files on several different servers. 我使用emacs编辑几个不同服务器上的脚本和代码文件。 TRAMP is working very well.
TRAMP工作得非常好。 However, when I exit emacs, all my tramp connections go away.
但是,当我退出emacs时,我的所有tramp连接都会消失。 I tried desktop-save-mode, but only local files show up when I restart emacs.
我尝试了桌面保存模式,但是当我重新启动emacs时只显示本地文件。 Is there some package that will remember tramp connections?
是否有一些包将记住tramp连接? Is this just a configuration issue?
这只是一个配置问题吗?
You can customize the variable desktop-buffers-not-to-save
to do this: 您可以自定义变量
desktop-buffers-not-to-save
来执行此操作:
(setq desktop-buffers-not-to-save "^$")
By default it is set to a regexp that matches TRAMP filenames. 默认情况下,它设置为匹配TRAMP文件名的正则表达式。 I would have expected setting it to
nil
would have worked, but, alas, it does not. 我原本预计将它设置为
nil
会有效,但是,唉,事实并非如此。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.