      (propertize (format my-linum-format-string line-number) 'face 'linum))
 (global-linum-mode 1)
 
-;;; backup files in a backup directory:
-(setq backup-directory-alist `(("." . "~/.saved.emacs")))
-(setq backup-by-copying t)
-
 ;;; Projectile everywhere
 (require 'projectile)
 (projectile-global-mode)

(setq auto-mode-alist (cons '("\\.cljs$" . clojure-mode) auto-mode-alist))
;;; cider config
(require 'ac-cider)
(add-hook 'cider-mode-hook 'cider-turn-on-eldoc-mode)
(add-hook 'cider-repl-mode-hook 'subword-mode)
(add-hook 'cider-repl-mode-hook 'paredit-mode)
(add-hook 'cider-repl-mode-hook 'rainbow-delimiters-mode)

;;; Java
(add-hook 'java-mode-hook
          (lambda ()
            (setq c-basic-offset 2)))
(add-to-list 'load-path "~/.emacs.d/malabar-1.5.0-SNAPSHOT/lisp/")
(setq semantic-default-submodes '(global-semantic-idle-scheduler-mode
                                  global-semanticdb-minor-mode
                                  global-semantic-idle-summary-mode
                                  global-semantic-mru-bookmark-mode))
(semantic-mode 1)
(require 'malabar-mode)
(setq malabar-groovy-lib-dir "~/.emacs.d/malabar-1.5.0-SNAPSHOT/lib/")
(add-to-list 'auto-mode-alist '("\\.java\\'" . malabar-mode))

;;; Javascript
;; React
(require 'react-snippets)
;; it's just JSX, don't overreact
(require 'jsx-mode)
(add-to-list 'auto-mode-alist '("\\.jsx\\'" . jsx-mode))
(autoload 'jsx-mode "jsx-mode" "JSX mode" t)
;;
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
(custom-set-variables
 '(js2-basic-offset 2)
 '(js2-bounce-indent-p t))

;;; org mode!
(require 'org-install)

(setq custom-file (locate-user-emacs-file "custom.el"))
(load custom-file 'noerror)

;;; Line numbering
;;; (from http://www.emacswiki.org/LineNumbers)
(defvar my-linum-format-string "%4d")
