Replace nrepl.el with cider

This commit is contained in:
Bozhidar Batsov 2013-10-17 15:22:16 +03:00
parent 2b28cfb41b
commit 4aa57ec81c

View file

@ -47,18 +47,18 @@
(add-hook 'clojure-mode-hook (lambda ()
(run-hooks 'prelude-clojure-mode-hook)))))
(eval-after-load 'nrepl
(eval-after-load 'cider
'(progn
(add-hook 'nrepl-interaction-mode-hook 'nrepl-turn-on-eldoc-mode)
(add-hook 'cider-interaction-mode-hook 'cider-turn-on-eldoc-mode)
(defun prelude-nrepl-mode-defaults ()
(defun prelude-cider-mode-defaults ()
(subword-mode +1)
(run-hooks 'prelude-interactive-lisp-coding-hook))
(setq prelude-nrepl-mode-hook 'prelude-nrepl-mode-defaults)
(setq prelude-cider-repl-mode-hook 'prelude-cider-repl-mode-defaults)
(add-hook 'nrepl-repl-mode-hook (lambda ()
(run-hooks 'prelude-nrepl-mode-hook)))))
(add-hook 'cider-repl-mode-hook (lambda ()
(run-hooks 'prelude-cider-repl-mode-hook)))))
(provide 'prelude-clojure)