This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-09
Channels
- # announcements (3)
- # babashka (17)
- # beginners (75)
- # calva (43)
- # cider (1)
- # clj-kondo (54)
- # cljdoc (8)
- # cljs-dev (70)
- # clojure (83)
- # clojure-europe (27)
- # clojure-nl (4)
- # clojure-norway (4)
- # clojure-spec (8)
- # clojure-uk (13)
- # clojured (2)
- # clojurescript (47)
- # community-development (4)
- # conjure (2)
- # cursive (3)
- # datomic (5)
- # emacs (5)
- # events (3)
- # fulcro (13)
- # graalvm-mobile (19)
- # helix (2)
- # introduce-yourself (1)
- # jobs (2)
- # jobs-discuss (28)
- # kaocha (9)
- # livestream (11)
- # malli (15)
- # meander (24)
- # nextjournal (8)
- # off-topic (26)
- # pathom (1)
- # pedestal (8)
- # polylith (2)
- # portal (31)
- # re-frame (4)
- # reagent (10)
- # reitit (8)
- # remote-jobs (3)
- # sci (1)
- # shadow-cljs (66)
- # spacemacs (20)
- # testing (6)
- # vim (15)
- # xtdb (7)
Daaang. Ended up overriding cider-jack-in-clj&cljs
via :around advice, and had to add a directory-local var
This is my .dir-locals.el:
((nil . ((cider--custom-clj&cljs-jack-in-p . t)
(cider-shadow-default-options . "app")
(cider-offer-to-open-cljs-app-in-browser . nil)
(eval . (progn
(defun cider-jack-in-clj&cljs* (&rest params)
(interactive)
(if (and (boundp 'cider--custom-clj&cljs-jack-in-p)
cider--custom-clj&cljs-jack-in-p)
(progn
(let ((cider-preferred-build-tool 'lein)
(cider-jack-in-default 'lein))
(funcall 'cider-jack-in-clj nil))
(let ((cider-preferred-build-tool 'shadow-cljs)
(cider-jack-in-default 'shadow-cljs)
(cider-cljs-repl-type "shadow"))
(cider-jack-in-cljs '(:cljs-repl-type shadow))))
(cl-destructuring-bind (orig-fn args) params
(funcall orig-fn args))))
(advice-add 'cider-jack-in-clj&cljs :around #'cider-jack-in-clj&cljs*))))))
👀 1