Permalink
Browse files

setup the auto-save-files location

  • Loading branch information...
1 parent 5962c58 commit cc7def0f41be31a708d7d42ed9592d6b6b4899ee @bostonaholic bostonaholic committed Sep 11, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 .emacs.d/init.el
View
@@ -93,3 +93,16 @@
(load "config-scss-mode")
(load "config-window-number-mode")
(load "config-yaml-mode")
+
+;; Put auto-save files (ie #foo#) and backup files (ie foo~) in ~/.emacs.d/auto-save-files.
+;; (custom-set-variables
+;; '(auto-save-file-name-transforms '((".*" "~/.emacs.d/auto-save-files/\\1" t)))
+;; '(backup-directory-alist '((".*" . "~/.emacs.d/backups/"))))
+
+(setq backup-directory-alist
+ `((".*" . , "~/.emacs.d/backups/")))
+(setq auto-save-file-name-transforms
+ `((".*" , "~/.emacs.d/auto-save-files/" t)))
+
+;; create the autosave dir if necessary, since emacs won't.
+(make-directory "~/.emacs.d/auto-save-files/" t)

0 comments on commit cc7def0

Please sign in to comment.