Skip to content

Instantly share code, notes, and snippets.

@dbrady
Created April 4, 2011 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dbrady/902431 to your computer and use it in GitHub Desktop.
Save dbrady/902431 to your computer and use it in GitHub Desktop.
Potty-train emacs to stop littering the fs tree with ~ files
;; Do civilized backup names. Added by dbrady 2003-03-07, taken from
;; http://emacswiki.wikiwikiweb.de/cgi-bin/wiki.pl?BackupDirectory
;;
;; Don't forget to mkdir ~/saves
(setq
backup-by-copying t ; don't clobber symlinks
backup-directory-alist
'(("." . "~/saves")) ; don't litter my fs tree
delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t) ; use versioned backups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment