From 7b0b5372e3aa48fed32d6e260304947eda4d8b92 Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Tue, 10 Mar 2020 21:03:02 +0100 Subject: [PATCH] Fix Clojure setup --- init.org | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/init.org b/init.org index e085f10..b8a06b4 100644 --- a/init.org +++ b/init.org @@ -926,19 +926,6 @@ (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 @@ -1304,6 +1291,13 @@ (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) #+END_SRC +** Bindings for [[https://github.com/clojure-emacs/cider][Cider]] + + #+BEGIN_SRC emacs-lisp + (with-eval-after-load 'cider + (define-key cider-repl-mode-map (kbd "C-l") 'cider-repl-clear-buffer)) + #+END_SRC + ** Bindings for built-ins #+BEGIN_SRC emacs-lisp