summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-09-09 20:25:18 +0100
committerAlan Pearce2014-09-09 20:25:18 +0100
commit80c7244e269f464b7fff2f1cfe501c4810d192f6 (patch)
treed7af2c5727dae065e0d5c00fc96ef2e643401592 /tag-emacs
parentbb978fb0233367f0fa62e2d0d15790ec96abdece (diff)
downloadnixfiles-80c7244e269f464b7fff2f1cfe501c4810d192f6.tar.lz
nixfiles-80c7244e269f464b7fff2f1cfe501c4810d192f6.tar.zst
nixfiles-80c7244e269f464b7fff2f1cfe501c4810d192f6.zip
Emacs: Set up clojure-mode and cider
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/Cask2
-rw-r--r--tag-emacs/emacs.d/init.el14
2 files changed, 16 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/Cask b/tag-emacs/emacs.d/Cask
index d0c5df48..6504e366 100644
--- a/tag-emacs/emacs.d/Cask
+++ b/tag-emacs/emacs.d/Cask
@@ -12,6 +12,8 @@
 (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")
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 4fc9a70a..a51e7c71 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -1174,6 +1174,20 @@ mouse-1: Display Line and Column Mode Menu"))))))
              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