From ec1179512fc8f65e5b2066450695a07f900fc22b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 14 Jul 2023 18:20:35 +0200 Subject: Emacs: automatically save state files whilst idle --- user/emacs/init.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'user/emacs/init.el') diff --git a/user/emacs/init.el b/user/emacs/init.el index f2c7bfca..05e7e295 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -220,6 +220,10 @@ With two prefix arguments, write out the day and month name." :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 -- cgit 1.4.1