monotux.tech

Dealing with Emacs backup files

Emacs, Backup

I keep googling the snippet below (stolen from Stack Overflow) for every new system I need it on, so I might as well post it here to help Future Oscar fix this.

(setq backup-directory-alist `(("." . "~/.saves"))
      backup-by-copying t
      delete-old-versions t
      kept-new-versions 6
      kept-old-versions 2
      version-control t)

Thank you, jfm3.