Bad-ptr / persp-mode.el

named perspectives(set of buffers/window configs) for emacs
401 stars 44 forks source link

Save/Load a subset of defined perspectives #10

Closed delexi closed 10 years ago

delexi commented 10 years ago

This is what I want to achieve:

Multiple perspectives that can be loaded independently from each other. If I have a bunch of perspectives I want to selectivley load one (or any subset) of them without touching the other perspecitves. I want to be be able to add buffers to said loaded perspective(s) and have these perspective(s) saved back to file upon closing emacs or deactivating persp-mode.

Wether this requires one or multiple files is not important.

Is this already possible? I didn't find anything like this.

Regards

Bad-ptr commented 10 years ago

Is this already possible?

No, it is not. I'll take a look at it on this weekend I think.

delexi commented 10 years ago

Is this already possible?

No, it is not. I'll take a look at it on this weekend I think.

Thank you!

Bad-ptr commented 10 years ago

Added persp-load-from-file-by-names and persp-save-to-file-by-names functions by b3ed547bbf841f77db18434490eb36187884c655 . Сheck it out and let me know if it does what you want.

delexi commented 10 years ago

This works like a charm!

One little thing that I noticed: Do not ask me whether I want to preserve perspectives already present in the file to save to if this file has not been created yet. This is the case when I first save a perspective to a new file.

Thank you for this quick reaction!

Edit: I spoke to quickly. Or maybe I did not describe my problem well enough. I am missing the fuctionality, that persp-mode automatically saves a perspective to the file it was loaded from, when emacs quits or persp-mode is deactivated. A little example:

If this should be made into a seperate issue, please let me know.

Regards

Bad-ptr commented 10 years ago

automatically saves a perspective to the file it was loaded from, when emacs quits or persp-mode is deactivated

OK. I think it's feasible.