]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve `desktop-save-mode` docstring
authorStefan Kangas <stefankangas@gmail.com>
Thu, 1 Feb 2024 08:08:19 +0000 (09:08 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 4 Feb 2024 11:00:24 +0000 (12:00 +0100)
* lisp/desktop.el (desktop-save-mode): Improve docstring.

(cherry picked from commit 5ce02c91bc128f390bcf0beb82e37a3fa7f251ba)

lisp/desktop.el

index e3994ceb83c61cafe30d19ebacc8e2992a72b408..3fa09ce6a41a1086d6e0d4fd2e0404462c1eed3e 100644 (file)
@@ -163,10 +163,19 @@ Used at desktop read to provide backward compatibility.")
 (define-minor-mode desktop-save-mode
   "Toggle desktop saving (Desktop Save mode).
 
-When Desktop Save mode is enabled, the state of Emacs is saved from
-one session to another.  In particular, Emacs will save the desktop when
-it exits (this may prompt you; see the option `desktop-save').  The next
-time Emacs starts, if this mode is active it will restore the desktop.
+When Desktop Save mode is enabled, the state of Emacs is saved from one
+session to another.  The saved Emacs \"desktop configuration\" includes the
+buffers, their file names, major modes, buffer positions, window and frame
+configuration, and some important global variables.
+
+To enable this feature for future sessions, customize `desktop-save-mode'
+to t, or add this line in your init file:
+
+    (desktop-save-mode 1)
+
+When this mode is enabled, Emacs will save the desktop when it exits
+(this may prompt you, see the option `desktop-save').  The next time
+Emacs starts, if this mode is active it will restore the desktop.
 
 To manually save the desktop at any time, use the command \\[desktop-save].
 To load it, use \\[desktop-read].