This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-08
Channels
- # aleph (2)
- # aws (1)
- # beginners (172)
- # boot (15)
- # cider (17)
- # clara (7)
- # cljs-dev (22)
- # cljsrn (12)
- # clojars (3)
- # clojure (110)
- # clojure-dev (5)
- # clojure-italy (13)
- # clojure-sanfrancisco (5)
- # clojure-spec (3)
- # clojure-uk (31)
- # clojurescript (110)
- # community-development (2)
- # cursive (16)
- # datomic (19)
- # docs (4)
- # emacs (49)
- # fulcro (24)
- # jobs (5)
- # keechma (2)
- # lein-figwheel (41)
- # leiningen (10)
- # luminus (4)
- # lumo (24)
- # mount (24)
- # numerical-computing (1)
- # off-topic (16)
- # om (4)
- # onyx (6)
- # parinfer (9)
- # planck (8)
- # re-frame (7)
- # reagent (6)
- # shadow-cljs (125)
- # sql (5)
- # test-check (9)
- # unrepl (6)
- # yada (5)
@xiongtx Sure. I didn’t even know this was possible. I always found the default behaviour very annoying.
I am giving fulcro video tutorials sample app a test drive and trying to setup emacs/cider. Fulcro uses a custom (start-figwheel) in src/dev/user.clj. How can I set configure cider to run that when using cider-jack-in-clojurescript
? Evidently normally one would set up the cider-cljs-lein-repl:
(setq cider-cljs-lein-repl
"(do (require 'figwheel-sidecar.repl-api)
(figwheel-sidecar.repl-api/start-figwheel!)
(figwheel-sidecar.repl-api/cljs-repl))")
I’m planning to change this, though, but for now you just have to pick what form to evaluate to start the cljs repl fron the clj repl.
and its probably best to set it as a dir local variable so that other clojurescript projects can set their own initialization steps
This was a really dumb idea initially - tying forms to the build systems. What I actually want to do is to just inspect what cljs repls are available and asking the user to select one of them.
This would also mean there will be just one var to configure if you want to force the default, instead of one form per build tool.
so setting cider-cljs-lein-repl
to
(do (require 'user)
(start-figwheel))
seems to be working - thanks.@dpsutton - yes - thanks - lazy ask : what is the location of the dir local variable?
make a file at the root of your project called dir-locals.el
with contents
((nil . ((cider-cljs-lein-repl . "(do (require 'user) (start-figwheel))")
)))
and always look to @malabarba blog posts for information about emacs
Artur is a true Emacs legend - it’s a pity he’s not that active in the OSS realm these days, but I guess that happens to everyone eventually when life catches up with us.
I’m not sure if anyone is interested but I made a quizlet set for CIDER keybindings https://quizlet.com/_3dr21m