Emacs桌面不记得TRAMP连接? [英] Emacs desktop doesn't remember TRAMP connections?
本文介绍了Emacs桌面不记得TRAMP连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
您可以自定义变量 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屋!
查看全文