diff --git a/emacs/init.el b/emacs/init.el index 06cbdf5..8e27cd0 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -31,7 +31,10 @@ (require 'recentf) (eval-when-compile (defvar recentf-exclude)) (add-to-list 'recentf-exclude no-littering-var-directory) - (add-to-list 'recentf-exclude no-littering-etc-directory)) + (add-to-list 'recentf-exclude no-littering-etc-directory) + (setq auto-save-file-name-transforms + `((".*" ,(no-littering-expand-var-file-name "auto-save/") t))) + ) (require 'use-package-ensure) (setq use-package-always-ensure t)