Commit 8fcf4ccab658

Vincent Demeester <vincent@sbr.pm>
2026-02-02 12:25:09
fix(emacs): redirect auto-save files to central directory
Auto-save files (#file#) were polluting working directories. Now they go to ~/.local/share/emacs/auto-saves/ like backups. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9172f59
Changed files (1)
dots
.config
emacs
dots/.config/emacs/init.el
@@ -273,6 +273,8 @@ Otherwise, call `backward-kill-word'."
   (delete-old-versions t)                ; Auto-delete excess
   (backup-by-copying t)                  ; Don't clobber symlinks
   (backup-directory-alist '(("." . "~/.local/share/emacs/backups/")))
+  ;; Auto-save files in central directory
+  (auto-save-file-name-transforms '((".*" "~/.local/share/emacs/auto-saves/" t)))
   (use-short-answers t "Use short answer y/n")
   ;; (tab-always-indent 'complete)
   ;; (tab-first-completion 'word-or-paren-or-punct)