Fork me on GitHub

@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


so, e.g. if you want to switch to eshell-mode, you just do M-x eshell-mode


@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


the changes should then show up in the browser


@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) 3) use CIDER to start a REPL (e.g. cider-jack-in), in the REPL launch figwheel with the figwheel-sidecar api 4) configure CIDER so it knows how to start a cljs browser REPL through Figwheel, now you can use cider-jack-in-javascript


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


how do I check if cider-load-buffer succeeded without exceptions?


afaik it always returns nil