From 972aad815840a82bf1a8bb1b2049cd58ee779eb1 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 8 Jan 2021 08:47:04 -0600 Subject: Add super-save --- config.org | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/config.org b/config.org index a3f09e0..7ddc579 100644 --- a/config.org +++ b/config.org @@ -918,15 +918,31 @@ from [[https://www.reddit.com/r/emacs/comments/km9by4/weekly_tipstricketc_thread *** Auto-saves #+BEGIN_SRC emacs-lisp -(with-eval-after-load 'no-littering - (let ((dir (no-littering-expand-var-file-name "autosaves"))) - (make-directory dir 'parents) - (cuss auto-save-file-name-transforms - `((".*" ,dir t)))) + (with-eval-after-load 'no-littering + (let ((dir (no-littering-expand-var-file-name "autosaves"))) + (make-directory dir 'parents) + (cuss auto-save-file-name-transforms + `((".*" ,dir t)))) - (auto-save-visited-mode +1)) + (auto-save-mode +1)) #+END_SRC +*** Super-save + +Because I like /overkill/, or at least … over-/saving/. + +#+BEGIN_SRC emacs-lisp + (straight-use-package 'super-save) + + (cuss super-save-remote-files nil + "Don't super-save remote files.") + + (cuss super-save-exclude '(".gpg") + "Ignore these files when saving.") + + (super-save-mode +1) +#+end_src + *** Auto-revert buffers to files on disk #+BEGIN_SRC emacs-lisp -- cgit 1.4.1-21-gabe81