1888 |
@example |
@example |
1889 |
(desktop-load-default) |
(desktop-load-default) |
1890 |
(desktop-read) |
(desktop-read) |
1891 |
|
(setq desktop-enable t) |
1892 |
@end example |
@end example |
1893 |
|
|
1894 |
@noindent |
@noindent |
1895 |
@findex desktop-save |
@findex desktop-save |
1896 |
The first time you save the state of the Emacs session, you must do it |
The first time you exit Emacs, you will be asked whether you want to |
1897 |
manually, with the command @kbd{M-x desktop-save}. Once you have done |
save your session. Once you have done that, exiting Emacs will save |
1898 |
that, exiting Emacs will save the state again---not only the present |
the state again in subsequent sessions. You can also save the state |
1899 |
Emacs session, but also subsequent sessions. You can also save the |
at any time, without exiting Emacs, by typing @kbd{M-x desktop-save}. |
|
state at any time, without exiting Emacs, by typing @kbd{M-x |
|
|
desktop-save} again. |
|
1900 |
|
|
1901 |
In order for Emacs to recover the state from a previous session, you |
In order for Emacs to recover the state from a previous session, you |
1902 |
must start it with the same current directory as you used when you |
must start it with the same current directory as you used when you |