 
 (require 'use-package)
 
-;;;;
+(add-to-list 'load-path (concat user-emacs-directory "vendor/"))
+
+
+;;;; Globals
+
+;; I rarely turn off the computer, so it's ok to have these in /tmp.
+;; You know, auto cleanup as a service ;)
 (defvar td/data-directory "/tmp/")
-(add-to-list 'load-path (concat user-emacs-directory "vendor/"))
-
-;; I rarely turn off the computer, so it's ok to have these at /tmp.
-;; You know, auto cleanup as a service ;)
 (setq backup-directory-alist `((".*" . ,td/data-directory))
       auto-save-list-file-prefix td/data-directory
       auto-save-timeout (* 5 60)

;;   :defer t
;;   :init
;;   (add-hook 'clojure-mode-hook 'cider-mode))
(use-package monroe
  :ensure t
  :defer t
  :commands (clojure-enable-monroe)
  :init (add-hook 'clojure-mode-hook 'clojure-enable-monroe))


(defun td/css-imenu-expressions ()
  "TODO: docs."
  (set (make-local-variable 'imenu-generic-expression)
       '(("Section" "^.*\\* =\\(.+\\)$" 1)
         (nil "^\\(.+\\)\\S*{$" 1))))

(use-package css-mode
  :mode (("\\.css$" . css-mode))
  :config
  (progn
    (setq css-indent-offset 2)
    (add-hook 'css-mode-hook #'td/css-imenu-expressions)))

(use-package scss-mode
  :ensure t
  :mode (("\\.scss$" . scss-mode)))

(use-package less-css-mode
  :ensure t
  :mode (("\\.less" . less-css-mode)))

(use-package yaml-mode
  :ensure t
  :mode (("\\.yaml$" . yaml-mode)

  :config
  (setq sh-basic-offset 2))

(use-package dockerfile-mode
  :ensure t
  :mode ("Dockerfile$" . dockerfile-mode))




;;;; Utilities
(use-package eshell
  :defer t
  :config
