all repos — archive/dotfiles @ 80c7244e269f464b7fff2f1cfe501c4810d192f6

Superseded by nixfiles

Emacs: Set up clojure-mode and cider
Alan Pearce alan@alanpearce.co.uk
Tue, 09 Sep 2014 20:25:18 +0100
commit

80c7244e269f464b7fff2f1cfe501c4810d192f6

parent

bb978fb0233367f0fa62e2d0d15790ec96abdece

2 files changed, 16 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/Casktag-emacs/emacs.d/Cask
@@ -12,6 +12,8 @@ (depends-on "autopair") (depends-on "bind-key")
 (depends-on "cask")
 (depends-on "cedit")
+(depends-on "cider")
+(depends-on "clojure-mode")
 (depends-on "company")
 (depends-on "company-go")
 (depends-on "deferred")
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -1174,6 +1174,20 @@ geiser              run-geiser
              run-racket))
 
+(req-package clojure-mode
+  :defer t
+  :init (progn
+          (add-hook 'cider-repl-mode-hook (lambda () (highlight-changes-mode -1)))
+          (add-hook 'clojure-mode-hook #'ap/lisp-setup)))
+
+(req-package cider
+  :require clojure-mode
+  :defer t
+  :config (progn
+            (setq nrepl-hide-special-buffers t)
+            (add-hook 'cider-mode-hook #'cider-turn-on-eldoc-mode)
+            (add-hook 'cider-repl-mode-hook #'paredit-mode)))
+
 (req-package redshank
   :diminish " Λ"
   :defer t