This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-29
Channels
- # admin-announcements (4)
- # arachne (19)
- # aws-lambda (3)
- # beginners (10)
- # boot (166)
- # capetown (32)
- # carry (160)
- # cider (5)
- # cljs-dev (5)
- # cljs-edn (19)
- # cljsrn (1)
- # clojure (100)
- # clojure-belgium (2)
- # clojure-dev (8)
- # clojure-greece (13)
- # clojure-new-zealand (12)
- # clojure-poland (1)
- # clojure-russia (93)
- # clojure-sanfrancisco (2)
- # clojure-spec (133)
- # clojure-uk (52)
- # clojurescript (129)
- # cursive (32)
- # datomic (13)
- # defnpodcast (5)
- # devcards (6)
- # dirac (4)
- # emacs (12)
- # euroclojure (5)
- # events (2)
- # hoplon (19)
- # immutant (45)
- # keechma (17)
- # lein-figwheel (27)
- # off-topic (9)
- # om (30)
- # onyx (17)
- # other-languages (3)
- # planck (2)
- # proton (11)
- # re-frame (7)
- # reagent (4)
- # ring (8)
- # sim-testing (2)
- # spacemacs (4)
- # testing (2)
- # untangled (162)
- # utah-clojurians (1)
- # yada (80)
@hrathod: yeah with an & in the end
@vinnyataide: you cannot "disable" a major mode because every buffer needs one, rather you switch to the mode you want
@vinnyataide: I think you are looking at the output of the command that was run. I am not sure if that buffer should be used to do input/output.
@zzamboni: thanks man ❤️
@hrathod and how I could proceed with a figwheel script that I run with clojure main? I dont see this option with cider
I am not a figwheel expert, but I think that lein figwheel
and then editing files was the normal workflow
@vinnyataide: you have a couple options for using figwheel from Emacs, from simple to complex:
1) run lein figwheel
in a terminal outside Emacs
2) run lein figwheel
with inf-clojure
(don't use CIDER) https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-with-Emacs-Inferior-Clojure-Interaction-Mode
3) use CIDER to start a REPL (e.g. cider-jack-in
), in the REPL launch figwheel with the figwheel-sidecar api https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl
4) configure CIDER so it knows how to start a cljs browser REPL through Figwheel, now you can use cider-jack-in-javascript
https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl#integration-with-emacscider
1) is the easiest, you need zero extra setup, it always works, but you don't get any fancy editor integration 2) is I think what the Figwheel author uses (or at least recommends), it's simple because it avoids nREPL. You can evaluate ClojureScript forms, but nothing fancy like looking up documentation or autocomplete 3) gives you all the cool CIDER stuff (and clj-refactor if you like) plus a Figwheel based browser REPL. Downside: you need a bit more setup, include figwheel-sidecar. Another "downside": you only get one REPL, so you have to choose between having a Clojure REPL or having a Figwheel REPL 4) gives you everything that 3) has, but with separate Clojure/ClojureScript REPLs, so you can evaluate forms in clj/cljs files and it will go to the right REPL. This is also the setup where there is the most that can go wrong