From 80c7244e269f464b7fff2f1cfe501c4810d192f6 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 9 Sep 2014 20:25:18 +0100 Subject: Emacs: Set up clojure-mode and cider --- tag-emacs/emacs.d/init.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tag-emacs/emacs.d/init.el') 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 -- cgit 1.4.1