bram85's Blog

bram85's Avatar Image
Tooting mostly about #emacs.
← All posts

My new #emacs package persist-state, to regularly save bookmarks, history, recent files (and more), has reached MELPA:

https://melpa.org/#/persist-state

Why such a package, as all of these packages have save functionality out of the box? Most often, these save functions are called on emacs-kill-hook. This works nice if you always exit Emacs cleanly. However, Emacs may crash, freeze or the underlying host may fall flat on its face, and all updates to the list of recent files, bookmarks, history, etc. are lost during your 183 days of emacs-uptime.

This package silently saves all of this metadata regularly. Note it does not replicate auto-save-mode, which saves buffer content regularly.

persist-state supports a number of packages out of the box:

For other packages that have some form of save functions, you can customize the list of save functions to be called regularly.

Check the README for more info.

https://codeberg.org/bram85/emacs-persist-state

To like or reply, open original post on Emacs.ch