Difference between revisions of "Session management"

From WikEmacs
Jump to navigation Jump to search
(Created page with "'''Session management''' allows session data such as buffers, cursor positions, global variables, windows, and frames to be saved and restored....")
 
(savehist mode)
(3 intermediate revisions by one other user not shown)
Line 2: Line 2:
  
 
==Packages==
 
==Packages==
* [[desktop.el]] - Bundled with Emacs.  Stores buffer, point, mark, history, and other variables. Emacs 24.4 snapshots since June 2013 are also store frame, including their desktop position and open windows.
+
* [[desktop.el]] - Bundled with Emacs.  Stores buffers, points, marks, history, and other variables. Emacs 24.4 snapshots [http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/113242 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 <code>(savehist-mode 1)</code>. By default it will only save your minibuffer history, but you can save other variables. For instance save your search strings by setting <code>savehist-additional-variables</code> to <code>(search-ring regexp-search-ring)</code>.
 +
 
 +
 
 +
[[Category:Desktop Management]]

Revision as of 12:37, 30 August 2014

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