From f945eeb39e1e247396660eadf553d62d01fd8988 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 27 Sep 2021 18:21:23 -0500 Subject: Install super-save-mode --- init.el | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index f24f1c7..dc81fc9 100644 --- a/init.el +++ b/init.el @@ -2163,6 +2163,14 @@ the default is \"/\"." (:hook #'turn-on-font-lock)) +(setup (:straight super-save) + (:option auto-save-default nil + super-save-auto-save-when-idle t + super-save-exclude '(".gpg") + super-save-remote-files nil) + (auto-save-visited-mode -1) + (super-save-mode +1)) + (setup (:straight-if systemd (executable-find "systemd"))) @@ -2225,9 +2233,7 @@ If used with a numeric prefix argument N, N backticks will be inserted." (unfocused-mode +1) (:with-hook unfocused-hook - (:hook (defun unfocused@save-buffers () - (save-some-buffers t)) - #'garbage-collect))) + (:hook #'garbage-collect))) (setup (:straight (vertico :host github -- cgit 1.4.1-21-gabe81