User1
User1

Reputation: 41251

Contexts for Emacs

I've been playing with Buffer Ring for Emacs and I really like the idea of having several rings of buffers. However, I would like to go a bit further. I go into what some may call "contexts". I usually work on about three projects at once. Often the projects involve different files and different languages. Sometimes it's nice to have cedet windows in my frame along with a debugger window, sometimes they get in the way. I would like to have a context for each project so I can run a command and by buffer ring changes along with the frames. I may also have a few misc contexts that aren't actually tied to projects like editing .emacs to include new packages and key bindings.

Is there an Emacs feature that can do these "contexts"? It would be nice to have the contexts be preserved between sessions.

Upvotes: 6

Views: 436

Answers (1)

Gareth Rees
Gareth Rees

Reputation: 65854

With Bookmark+ you can bookmark the current "desktop" (the current state of buffers, windows, registers, search-ring, etc). Then at a later date you can jump to the bookmark to restore the saved state.

Since desktop.el doesn't know about the buffer ring, you'll probably have to customize desktop-globals-to-save appropriately.

(I've not used this myself, but it sounds like the kind of thing you're after.)

Upvotes: 1

Related Questions