Difference between revisions of "Session management"

From WikEmacs
Jump to navigation Jump to search
m
(desktop: we can save multiple projets/file)
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
==Packages==
 
==Packages==
* [[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 open windows.
+
* [[desktop.el]] - Bundled with Emacs.  Saves buffers, points, marks, history, and other variables in a desktop file, that we can load afterwards. 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. Works for many projects: we can save a desktop file in a given directory (<code>desktop-save</code>) and load it (optional argument to <code>desktop-read</code>).
 +
* [[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]]

Latest revision as of 10:43, 10 May 2017

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. Saves buffers, points, marks, history, and other variables in a desktop file, that we can load afterwards. Emacs 24.4 snapshots since June 2013 also store frames, including their desktop position and window arrangement. Works for many projects: we can save a desktop file in a given directory (desktop-save) and load it (optional argument to desktop-read).
  • 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).