Session management

From WikEmacs
Revision as of 12:37, 30 August 2014 by Elvince (talk | contribs) (savehist mode)
Jump to navigation Jump to search

Session management allows session data such as buffers, cursor positions, global variables, windows, and frames to be saved and restored. This is often used to quickly restore a previous working environment. The particular session data which can be saved varies across session management packages.

Packages

  • desktop.el - Bundled with Emacs. Stores buffers, points, marks, history, and other variables. Emacs 24.4 snapshots since June 2013 also store frames, including their desktop position and window arrangement.
  • savehist.el allows you to save many variables accross sessions. Activate it with (savehist-mode 1). By default it will only save your minibuffer history, but you can save other variables. For instance save your search strings by setting savehist-additional-variables to (search-ring regexp-search-ring).