 ;; history
 (defconst temp-emacs-dir (expand-file-name (format "emacs%d" (user-uid))
                                            temporary-file-directory))
-(setq backup-directory-alist `((".*" . ,(concat temp-emacs-dir "/backup")))
-      ;; auto-save/'s trailing slash is important
-      auto-save-file-name-transforms `((".*"
-                                        ,(expand-file-name "auto-save/"
-                                                           user-emacs-directory)
+(setq backup-directory-alist `((".*" . ,(expand-file-name "backup" temp-emacs-dir))))
+
+;; auto-save/'s trailing slash is important
+(setq auto-save-file-name-transforms `((".*"
+                                        ,(locate-user-emacs-file ".auto-save/")
                                         t))
       auto-save-timeout 60
       auto-save-interval 50)

(defvar auto-install t)
(defconst favorite-packages '(evil
                              evil-surround
                              evil-exchange

      )
(global-company-mode 1)

(add-to-list 'load-path (locate-user-emacs-file "autoload"))
(require 'autoload-init)

(defun evil-maybe-remove-spaces-fix (&optional do-remove)
