Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 974
User1 Avatar asked Nov 18 '10 18:11

User1


1 Answers

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.)

like image 184
Gareth Rees Avatar answered Sep 30 '22 11:09

Gareth Rees