1
0
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
Bram Schoenmakers a872338a7d Extend README 2023-06-05 22:41:54 +02:00
Bram Schoenmakers 9613f9be51 Replace package header Package-Version with Version
Package-Version will be added my MELPA.
2023-06-05 22:26:17 +02:00
2 changed files with 7 additions and 2 deletions

View file

@ -7,7 +7,7 @@ I don't leave Emacs often, but sometimes Emacs leaves me.
At moments like these it's convenient to start Emacs again with a reasonably up to date state from the previous session: history variables, bookmarks, open buffers, etc. Usually these items are saved at Emacs exit (as part of =kill-emacs-hook=), but when Emacs exits unexpectedly due to a crash, these functions are not executed and you're left with an outdated state (if any).
This package saves your Emacs state regularly when idle for a brief moment, to minimize disturbance of executing all save functions in sequence. In case Emacs is idle for a longer time, no state is saved.
This package saves your Emacs state regularly when idle for a brief moment, to minimize the disturbance of executing all save functions in sequence (as Emacs blocks for a brief moment). In case Emacs is idle for a longer time, no state is saved.
* Supported packages
@ -87,6 +87,11 @@ To add custom functions that should be executed, add functions to =persist-state
The code to generate the table of configuration items was inspired by an idea of [[https://xenodium.com/generating-elisp-org-docs/][Álvaro Ramírez]] (a.k.a. xenodium).
* Related packages
- [[https://elpa.gnu.org/packages/persist.html][persist]] :: This package targets package developers to declare variables to be persisted across Emacs sessions.
- savehist :: This built-in package saves history variables. Actually, this package is called by /persist-state/ to save the history variables at regular intervals.
* Contact
- Issue reports: [[https://codeberg.org/bram85/emacs-persist-state/issues][Codeberg]]

View file

@ -5,7 +5,7 @@
;; Author: Bram Schoenmakers <me@bramschoenmakers.nl>
;; Maintainer: Bram Schoenmakers <me@bramschoenmakers.nl>
;; Created: 05 May 2023
;; Package-Version: 0.1
;; Version: 0.1
;; Package-Requires: ((emacs "28.2"))
;; Keywords: convenience
;; URL: https://codeberg.org/bram85/emacs-persist-state.git