 ;;;;;;;;;;;;;;;
 
 (use-package eldoc
-  ;; defer til the mode is needed
-  :defer t
-  :diminish "Eld"
-  :init
-  (add-hook 'clojure-mode-hook 'eldoc-mode 1)
-  (add-hook 'lisp-interaction-mode-hook 'eldoc-mode 1)
-  (add-hook 'emacs-lisp-mode-hook 'eldoc-mode 1)
-  (add-hook 'ielm-mode-hook 'eldoc-mode 1)
-  :bind
-  ;; since C-j is shadowed by smartparens
+  :bind ;; since C-j is shadowed by smartparens
   (:map lisp-mode-shared-map
         ("<C-return>" . eval-last-sexp)
         ("<M-return>" . eval-print-last-sexp)
         ("<C-M-return>" . eval-defun)
         ("<C-S-return>" . eval-region)
         ("<M-S-return>" . eval-buffer)
-        ("<C-M-S-return>" . load-file)))
+        ("<C-M-S-return>" . load-file))
+  :diminish "Eld"
+  :init
+  (add-hook 'clojure-mode-hook 'eldoc-mode 1)
+  (add-hook 'lisp-interaction-mode-hook 'eldoc-mode 1)
+  (add-hook 'emacs-lisp-mode-hook 'eldoc-mode 1)
+  (add-hook 'ielm-mode-hook 'eldoc-mode 1))
 
 (use-package clojure-mode
-  ;; defer til the mode is needed
   ;; see mode info: C-h v auto-mode-alist
   :mode
   ("\\(?:build\\|profile\\)\\.boot\\'" . clojure-mode)

  (package-refresh-contents)
  (package-install 'use-package))
(eval-when-compile (require 'use-package))
(setq use-package-always-ensure t)
;; for checking when which package is loaded
;; (setq use-package-verbose t)

;; these two are needed for use-package

  (use-package markdown-mode+))

(use-package tex
  :ensure auctex
  :mode
  ("\\.hva\\'" . latex-mode)
