summaryrefslogtreecommitdiff
path: root/cider.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2018-05-20 23:33:08 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2018-05-20 23:33:08 +0300
commitab25ea6c6632b4557460f49146ae728e19ba1e94 (patch)
tree0105502468ebfe6662ecc08000a68d6770286592 /cider.el
parentc08efcfb020376b8ccd99faecd3c0deec8a5d90f (diff)
Inject piggieback automatically on cider-jack-in-clojurescript
Diffstat (limited to 'cider.el')
-rw-r--r--cider.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/cider.el b/cider.el
index a110aa64..4fcbc3e0 100644
--- a/cider.el
+++ b/cider.el
@@ -925,7 +925,10 @@ own buffer."
If PROMPT-PROJECT is t, then prompt for the project for which to
start the server."
(interactive "P")
- (cider-jack-in prompt-project 'cljs-too))
+ ;; TODO: That should be streamlined and made configurable
+ (let ((cider-jack-in-dependencies (cons '("cider/piggieback" "0.3.5") cider-jack-in-dependencies))
+ (cider-jack-in-nrepl-middlewares (cons "cider.piggieback/wrap-cljs-repl" cider-jack-in-nrepl-middlewares)))
+ (cider-jack-in prompt-project 'cljs-too)))
;;;###autoload
(defalias 'cider-jack-in-cljs #'cider-jack-in-clojurescript)