summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2018-05-08 20:11:26 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2018-05-08 20:11:26 +0300
commit0a652cca399c23b746d4d5ca8d1ad0f0fe7446c8 (patch)
treef2ee88b7d9782394dd0ce83c343e427b26cb92af /doc
parentfed67b8e53256bff4c9aacbd7eb78668de7a4d99 (diff)
Add to the manual some tips for tweaking cider-cljs-repl-types
Diffstat (limited to 'doc')
-rw-r--r--doc/clojurescript.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/clojurescript.md b/doc/clojurescript.md
index 15deef1b..ee09bf78 100644
--- a/doc/clojurescript.md
+++ b/doc/clojurescript.md
@@ -67,6 +67,23 @@ All supported ClojureScript REPLs are stored in
(cider-register-cljs-repl-type 'super-cljs "(do (...))" optional-requirements-function)
```
+You can also modify the known ClojureScript REPLs on a per-project basis using
+`.dir-locals.el`:
+
+```el
+;; replace the list of REPLs types and set some default
+((nil
+ (cider-default-cljs-repl . super-cljs)
+ (cider-cljs-repl-types . ((super-cljs "(do (foo) (bar))")))))
+```
+
+```el
+;; modify the list of known REPLs and set some default
+((nil
+ (eval . (cider-register-cljs-repl-type 'super-cljs "(do (foo) (bar))"))
+ (cider-default-cljs-repl . super-cljs)))
+```
+
You can also create a ClojureScript REPL with the command
`cider-create-sibling-cljs-repl` in cases where you already have a
Clojure REPL running.