diff options
| author | Eli Zaretskii | 2006-08-12 12:00:30 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-08-12 12:00:30 +0000 |
| commit | 5bfef96c0fc21d566a752a2c0fbd512811b7c84e (patch) | |
| tree | 18c1c2939d1444aa5d19019ec1a53c3f14200700 | |
| parent | d0cd961e58fb5e421377fad88b1037546e9bec93 (diff) | |
| download | emacs-5bfef96c0fc21d566a752a2c0fbd512811b7c84e.tar.gz emacs-5bfef96c0fc21d566a752a2c0fbd512811b7c84e.zip | |
(Saving Emacs Sessions): Clarify when desktop is restored on startup.
| -rw-r--r-- | man/misc.texi | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/man/misc.texi b/man/misc.texi index 6f6d448bc7d..33c85a9fc8b 100644 --- a/man/misc.texi +++ b/man/misc.texi | |||
| @@ -1999,9 +1999,10 @@ subsequent Emacs sessions reload the saved desktop. | |||
| 1999 | @vindex desktop-save-mode | 1999 | @vindex desktop-save-mode |
| 2000 | You can save the desktop manually with the command @kbd{M-x | 2000 | You can save the desktop manually with the command @kbd{M-x |
| 2001 | desktop-save}. You can also enable automatic desktop saving when | 2001 | desktop-save}. You can also enable automatic desktop saving when |
| 2002 | you exit Emacs: use the Customization buffer (@pxref{Easy | 2002 | you exit Emacs and its restoring when Emacs starts: use the |
| 2003 | Customization}) to set @code{desktop-save-mode} to @code{t} for future | 2003 | Customization buffer (@pxref{Easy Customization}) to set |
| 2004 | sessions, or add this line in your @file{~/.emacs} file: | 2004 | @code{desktop-save-mode} to @code{t} for future sessions, or add this |
| 2005 | line in your @file{~/.emacs} file: | ||
| 2005 | 2006 | ||
| 2006 | @example | 2007 | @example |
| 2007 | (desktop-save-mode 1) | 2008 | (desktop-save-mode 1) |
| @@ -2009,7 +2010,8 @@ sessions, or add this line in your @file{~/.emacs} file: | |||
| 2009 | 2010 | ||
| 2010 | @findex desktop-change-dir | 2011 | @findex desktop-change-dir |
| 2011 | @findex desktop-revert | 2012 | @findex desktop-revert |
| 2012 | When Emacs starts, it looks for a saved desktop in the current | 2013 | If you turn on @code{desktop-save-mode} in your @file{~/.emacs}, |
| 2014 | then when Emacs starts, it looks for a saved desktop in the current | ||
| 2013 | directory. Thus, you can have separate saved desktops in different | 2015 | directory. Thus, you can have separate saved desktops in different |
| 2014 | directories, and the starting directory determines which one Emacs | 2016 | directories, and the starting directory determines which one Emacs |
| 2015 | reloads. You can save the current desktop and reload one saved in | 2017 | reloads. You can save the current desktop and reload one saved in |
| @@ -2018,7 +2020,10 @@ another directory by typing @kbd{M-x desktop-change-dir}. Typing | |||
| 2018 | 2020 | ||
| 2019 | Specify the option @samp{--no-desktop} on the command line when you | 2021 | Specify the option @samp{--no-desktop} on the command line when you |
| 2020 | don't want it to reload any saved desktop. This turns off | 2022 | don't want it to reload any saved desktop. This turns off |
| 2021 | @code{desktop-save-mode} for the current session. | 2023 | @code{desktop-save-mode} for the current session. Starting Emacs with |
| 2024 | the @samp{--no-init-file} option also disables desktop reloading, | ||
| 2025 | since it bypasses the @file{.emacs} init file, where | ||
| 2026 | @code{desktop-save-mode} is usually turned on. | ||
| 2022 | 2027 | ||
| 2023 | @vindex desktop-restore-eager | 2028 | @vindex desktop-restore-eager |
| 2024 | By default, all the buffers in the desktop are restored at one go. | 2029 | By default, all the buffers in the desktop are restored at one go. |