aboutsummaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el15
1 files changed, 12 insertions, 3 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
index dd0f300..c550e73 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -1,5 +1,14 @@
((nil . ((cider-preferred-build-tool . clojure-cli)
- (cider-shadow-default-options . "app")
- (cider-default-cljs-repl . custom)
(cider-clojure-cli-aliases . "-M:dev")
- (cider-merge-sessions . :project))))
+ (cider-default-cljs-repl . custom)
+ (cider-custom-cljs-repl-init-form
+ . "(do (require '[shadow.cljs.devtools.api :as shadow])
+(require '[shadow.cljs.devtools.server :as server])
+(server/start!)
+(shadow/watch :app)
+(shadow/nrepl-select :app))")
+ (cider-merge-sessions . :project)
+ (eval . (when (boundp 'cider-jack-in-nrepl-middlewares)
+ (make-variable-buffer-local 'cider-jack-in-nrepl-middlewares)
+ (add-to-list 'cider-jack-in-nrepl-middlewares "cider.nrepl/cider-middleware")
+ (add-to-list 'cider-jack-in-nrepl-middlewares "shadow.cljs.devtools.server.nrepl/middleware"))))))