       kept-old-versions 5    ; and how many of the old
       )
 
+;; http://stackoverflow.com/questions/8246483/emacs-how-to-disable-files-creation
+(setq auto-save-file-name-transforms
+    `((".*" ,temporary-file-directory t)))
+
+
 ;; http://www.emacswiki.org/emacs/DeletingWhitespace
 (add-hook 'before-save-hook 'delete-trailing-whitespace)
 

  (lambda ()
    (setq tab-width 2)
    (setq sgml-basic-offset 2)
    (setq indent-tabs-mode nil)))
(add-to-list 'auto-mode-alist '("\\.ejs" . html-mode))


;; javascript

(add-hook 'prog-mode-hook 'rainbow-delimiters-mode)

;; default indent
;; http://emacswiki.org/emacs/IndentingC
(setq-default indent-tabs-mode t)
(setq-default tab-width 4)
(setq tab-stop-list (number-sequence 4 200 4))
(setq indent-line-function 'insert-tab)
(setq lisp-body-indent 2)
(setq c-default-style "stroustrup")
(setq c-basic-offset 4)

;; lisp
(add-hook 'lisp-mode-hook
  (lambda ()
    (set (make-local-variable 'lisp-indent-function)
         'common-lisp-indent-function)))

;; Python Hook
(add-hook 'python-mode-hook '(lambda ()
  (setq python-indent 4)))


;; emacs lisp
;; http://www.emacswiki.org/emacs/EmacsLispMode
