session.el是干什么的?

我看到这个包占用了很多的时间……但是我不明白,它是干什么的?它和 desktop-save-mode 有啥区别?

1 个赞
  • 你不知道它是干嘛的为什么还要用它?
  • 你为什么不自己去看说明?难道没说明吗?
  1. 我目前在用别人的配置。

  2. When you start Emacs, package Session restores various variables (e.g., input histories) from your last session. It also provides a menu containing recently changed/visited files and restores the places (e.g., point) of such a file when you revisit it.

这是Emacs Wiki上的文档,我看了,但是我不明白的是它到底恢复了啥,以及和saveplace和savehist有啥不同的……

1 个赞

这个 session.el 会自动保存很多变量,包括 kill-ring 里的内容,会在使用过程中自动判断要保存的变量,和 desktop.el 有很多重复,但 destop.el 要提前在配置中定义需要保存的变量类型。

不知道这个 session.el 目前有没有一样好的替代方案?