tags:

views:

55

answers:

1

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?

+3  A: 

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

(setq desktop-files-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.

Trey Jackson
You can set it to `^$`, IIRC.
phils
@phils Duh, thanks.
Trey Jackson
Yes! That was totally to cause. I can kind of see why this is the default because loading tramp files is slow.
User1
@User1 There are other desktop-like packages that deal with the delayed loading. I thought there was even an addition to desktop itself which did the lazy loading. Many are listed here: http://www.emacswiki.org/emacs/SessionManagement
Trey Jackson