现在“恢复上次打开的内容”用什么比较好?

请原谅我那体育老师教的语文。

就是和desktop-save-mode一样功能的东西,该用什么比较好?


以及我到底该恢复些什么,才比较合理?我现在的desktop-global-to-save有这么长:

(setq desktop-globals-to-save
      '((comint-input-ring        . 50)
        (compile-history          . 30)
        desktop-missing-file-warning
        (dired-regexp-history     . 20)
        (extended-command-history . 30)
        (face-name-history        . 20)
        (file-name-history        . 100)
        (grep-find-history        . 30)
        (grep-history             . 30)
        (ido-buffer-history       . 100)
        (ido-last-directory-list  . 100)
        (ido-work-directory-list  . 100)
        (ido-work-file-list       . 100)
        (ivy-history              . 100)
        (magit-read-rev-history   . 50)
        (minibuffer-history       . 50)
        (org-clock-history        . 50)
        (org-refile-history       . 50)
        (org-tags-history         . 50)
        (query-replace-history    . 60)
        (read-expression-history  . 60)
        (regexp-history           . 60)
        (regexp-search-ring       . 20)
        register-alist
        (search-ring              . 20)
        (shell-command-history    . 50)
        tags-file-name
        tags-table-list))

另外我还开着savehist-mode, recentf-mode, 我发现savehist-mode和这里面好多都重复了

所以这些东西里哪些是根本不需要恢复的?求教

谢谢

I think counsel-recentf or helm-recentf is enough for use…

You should keep your computer and Emacs open if you want to keep your excursion.

但是我还是会想呀避免手滑之类的……

psession我觉得还不错,可以试试。