diff options
-rw-r--r-- | config.org | 28 |
1 files 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 | |||
918 | *** Auto-saves | 918 | *** Auto-saves |
919 | 919 | ||
920 | #+BEGIN_SRC emacs-lisp | 920 | #+BEGIN_SRC emacs-lisp |
921 | (with-eval-after-load 'no-littering | 921 | (with-eval-after-load 'no-littering |
922 | (let ((dir (no-littering-expand-var-file-name "autosaves"))) | 922 | (let ((dir (no-littering-expand-var-file-name "autosaves"))) |
923 | (make-directory dir 'parents) | 923 | (make-directory dir 'parents) |
924 | (cuss auto-save-file-name-transforms | 924 | (cuss auto-save-file-name-transforms |
925 | `((".*" ,dir t)))) | 925 | `((".*" ,dir t)))) |
926 | 926 | ||
927 | (auto-save-visited-mode +1)) | 927 | (auto-save-mode +1)) |
928 | #+END_SRC | 928 | #+END_SRC |
929 | 929 | ||
930 | *** Super-save | ||
931 | |||
932 | Because I like /overkill/, or at least … over-/saving/. | ||
933 | |||
934 | #+BEGIN_SRC emacs-lisp | ||
935 | (straight-use-package 'super-save) | ||
936 | |||
937 | (cuss super-save-remote-files nil | ||
938 | "Don't super-save remote files.") | ||
939 | |||
940 | (cuss super-save-exclude '(".gpg") | ||
941 | "Ignore these files when saving.") | ||
942 | |||
943 | (super-save-mode +1) | ||
944 | #+end_src | ||
945 | |||
930 | *** Auto-revert buffers to files on disk | 946 | *** Auto-revert buffers to files on disk |
931 | 947 | ||
932 | #+BEGIN_SRC emacs-lisp | 948 | #+BEGIN_SRC emacs-lisp |