Skip to content

Commit fc4887f

Browse files
committed
Add nbb workaround from clojure-emacs/cider#3061
1 parent d72351b commit fc4887f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

config.org

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,16 @@ info
592592

593593
(my-settings/add-lisp-hooks
594594
'(cider-mode-hook
595-
cider-repl-mode-hook))))
595+
cider-repl-mode-hook))
596+
597+
(cider-register-cljs-repl-type 'nbb "(+ 1 2 3)")
598+
599+
(defun mm/cider-connected-hook ()
600+
(when (eq 'nbb cider-cljs-repl-type)
601+
(setq-local cider-show-error-buffer nil)
602+
(cider-set-repl-type 'cljs)))
603+
604+
(add-hook 'cider-connected-hook #'mm/cider-connected-hook)))
596605

597606
#+END_SRC
598607

0 commit comments

Comments
 (0)