Enable Emacs to automatically open the files that have been opened at the time of exit.
Source: Internet
Author: User
During work and study, you often encounter the need to turn off Emacs. However, the next time you open Emacs, it is generally necessary to continue the previous job, for example, continue to read the unread info, and then write Code.
Then, open the last file again, find the corresponding location, and then edit it.
This is a little too troublesome. For example, if you use M-x info to open the tutorial, you don't know where you saw it last time. If you use w3m to view online novels, you don't know where you saw it last time. It is a bit of trouble to add it to bookmark every time!
Use the M-x Desktop-save command before exiting Emacs to record the files you have opened. These documents will be automatically opened next time you open Emacs.
Of course, if you are too lazy, you can add the following sentence in. emacs:
(Desktop-save-mode 1)
In this way, every time you exit Emacs, emacs will automatically help you save the status of Emacs. The next time you open Emacs, everything will come back.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.