diff options
author | Case Duckworth | 2021-09-27 18:21:23 -0500 |
---|---|---|
committer | Case Duckworth | 2021-09-27 18:23:01 -0500 |
commit | f945eeb39e1e247396660eadf553d62d01fd8988 (patch) | |
tree | 7ecf706091577a424200ad0cc96ff22f8564135f | |
parent | Add consult-org-clock (diff) | |
download | emacs-f945eeb39e1e247396660eadf553d62d01fd8988.tar.gz emacs-f945eeb39e1e247396660eadf553d62d01fd8988.zip |
Install super-save-mode
-rw-r--r-- | init.el | 12 |
1 files changed, 9 insertions, 3 deletions
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 \"/\"." | |||
2163 | 2163 | ||
2164 | (:hook #'turn-on-font-lock)) | 2164 | (:hook #'turn-on-font-lock)) |
2165 | 2165 | ||
2166 | (setup (:straight super-save) | ||
2167 | (:option auto-save-default nil | ||
2168 | super-save-auto-save-when-idle t | ||
2169 | super-save-exclude '(".gpg") | ||
2170 | super-save-remote-files nil) | ||
2171 | (auto-save-visited-mode -1) | ||
2172 | (super-save-mode +1)) | ||
2173 | |||
2166 | (setup (:straight-if systemd | 2174 | (setup (:straight-if systemd |
2167 | (executable-find "systemd"))) | 2175 | (executable-find "systemd"))) |
2168 | 2176 | ||
@@ -2225,9 +2233,7 @@ If used with a numeric prefix argument N, N backticks will be inserted." | |||
2225 | (unfocused-mode +1) | 2233 | (unfocused-mode +1) |
2226 | 2234 | ||
2227 | (:with-hook unfocused-hook | 2235 | (:with-hook unfocused-hook |
2228 | (:hook (defun unfocused@save-buffers () | 2236 | (:hook #'garbage-collect))) |
2229 | (save-some-buffers t)) | ||
2230 | #'garbage-collect))) | ||
2231 | 2237 | ||
2232 | (setup (:straight (vertico | 2238 | (setup (:straight (vertico |
2233 | :host github | 2239 | :host github |