Emacs: Set up clojure-mode and cider
Alan Pearce alan@alanpearce.co.uk
Tue, 09 Sep 2014 20:25:18 +0100
2 files changed, 16 insertions(+), 0 deletions(-)
M tag-emacs/emacs.d/Cask → tag-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.el → tag-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