Alex Biddle     About     Archive     Feed

Workspaces with Emacs

I define a “workspace” as a group of buffers that can be saved and restored. The below doesn’t offer anything fancy, like saving the arrangement of Emacs windows, but it works for me.

I found the workspace functionality I wanted in the bookmark+ plugin, so install it with M-x list-packages, and add the below to your ~/.emacs file:

(require 'bookmark+)

Now you can open some buffers, then save them with C-x p K. This will open up a minibuffer where you can choose where to save your desktop file. It doesn’t matter which folder you use, as bookmark+ keeps track of this (these files are stored in ~/.emacs.d/bookmarks) When you open up Emacs again, you can restore your “desktop” or “workspace” by hitting C-x p e.