Emacs: automatically save state files whilst idle
Alan Pearce alan@alanpearce.eu
Fri, 14 Jul 2023 18:20:35 +0200
2 files changed, 5 insertions(+), 0 deletions(-)
M user/emacs/init.el → user/emacs/init.el
@@ -220,6 +220,10 @@ :init (savehist-mode +1) :config (progn (add-to-list 'savehist-additional-variables 'command-history))) +(use-package persist-state + :if (bound-and-true-p server-process) + :ghook ('after-init-hook #'persist-state-mode)) + (use-package vertico :ghook ('after-init-hook #'vertico-mode)) (use-package prescient
M user/settings/emacs.nix → user/settings/emacs.nix
@@ -161,6 +161,7 @@ markdown-mode marginalia nerd-icons doom-modeline + persist-state posframe quickrun rainbow-mode