From 36d227ca34e69a7b665499198f78c1640d89cdc0 Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Sun, 11 Jun 2017 13:50:42 +0200 Subject: [PATCH] Add some Clojure specific settings Clear REPL with C-l and connect to figwheel when using cljs. --- init.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/init.org b/init.org index f69d7d6..3f406c6 100644 --- a/init.org +++ b/init.org @@ -990,6 +990,19 @@ (add-hook 'lisp-interaction-mode-hook 'turn-on-eldoc-mode) #+END_SRC +*** Clojure + + #+BEGIN_SRC emacs-lisp + (add-hook 'cider-repl-mode-hook (lambda () (local-set-key (kbd "C-l") 'cider-repl-clear-buffer))) + #+END_SRC + + #+BEGIN_SRC emacs-lisp + (setq cider-cljs-lein-repl + "(do (require 'figwheel-sidecar.repl-api) + (figwheel-sidecar.repl-api/start-figwheel!) + (figwheel-sidecar.repl-api/cljs-repl))") + #+END_SRC + *** Common lisp I use [[http://www.common-lisp.net/project/slime/][Slime]] along with =lisp-mode= to edit Common Lisp code. Slime