Create .dir-locals.el
((nil
(cider-clojure-cli-global-options . "-A:dev")
(cider-jack-in-nrepl-middlewares . ("cider.nrepl/cider-middleware" "shadow.cljs.devtools.server.nrepl/middleware"))))
y.M-x sesman-start; Choose cider-jack-in-clj; "Your Clojure REPL is connected"(user/main)M-x cider-connect-sibling-cljsshadow and the name of the shadow build :devkitWhen inside of a CLJC file, evaluations will be sent to both REPLs. So be sure to wrap anything platform specific in reader conditionals before evaluating them. Inline results only show a single result, so whichever REPL returns slower wins. prn is your friend if you want to see evaluation results, as it will print in each REPL buffer the result from that environment.
To prevent being prompted to apply the local variables on every file you open:
M-x customize and search for safe-local-variable-valuescider-jack-in-nrepl-middlewares, with the value that is in .dir-locals.el. E.g. ("cider.nrepl/cider-middleware" "shadow.cljs.devtools.server.nrepl/middleware")Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |