Add some Clojure specific settings

Clear REPL with C-l and connect to figwheel when using cljs.
This commit is contained in:
Lars Tveito 2017-06-11 13:50:42 +02:00
parent 98e12fc1e4
commit 36d227ca34

View File

@ -990,6 +990,19 @@
(add-hook 'lisp-interaction-mode-hook 'turn-on-eldoc-mode) (add-hook 'lisp-interaction-mode-hook 'turn-on-eldoc-mode)
#+END_SRC #+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 *** Common lisp
I use [[http://www.common-lisp.net/project/slime/][Slime]] along with =lisp-mode= to edit Common Lisp code. Slime I use [[http://www.common-lisp.net/project/slime/][Slime]] along with =lisp-mode= to edit Common Lisp code. Slime