Emacs桌面不记得TRAMP连接? [英] Emacs desktop doesn't remember TRAMP connections?

查看:88
本文介绍了Emacs桌面不记得TRAMP连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用emacs在几个不同的服务器上编辑脚本和代码文件。 TRAMP工作非常好。但是,当我退出emacs时,我所有的流氓连接都会消失。我尝试桌面保存模式,但是当我重新启动emacs时,只显示本地文件。有没有一些可以记住流氓连接的包?这只是一个配置问题?

解决方案

您可以自定义变量 desktop-buffers-not-to -save 执行此操作:

 (setq desktop-buffers-not-to-save^ $)

默认情况下,它被设置为与TRAMP文件名匹配的正则表达式。我希望将其设置为 nil 将会工作,但唉,它不会。


I use emacs to edit scripts and code files on several different servers. TRAMP is working very well. However, when I exit emacs, all my tramp connections go away. I tried desktop-save-mode, but only local files show up when I restart emacs. Is there some package that will remember tramp connections? Is this just a configuration issue?

解决方案

You can customize the variable desktop-buffers-not-to-save to do this:

(setq desktop-buffers-not-to-save "^$")

By default it is set to a regexp that matches TRAMP filenames. I would have expected setting it to nil would have worked, but, alas, it does not.

这篇关于Emacs桌面不记得TRAMP连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆