Fork me on GitHub
#emacs
<
2016-06-29
>
vinnyataide03:06:01

@hrathod: yeah with an & in the end

zzamboni08:06:18

@vinnyataide: you cannot "disable" a major mode because every buffer needs one, rather you switch to the mode you want

zzamboni08:06:10

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

hrathod14:06:04

@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.

vinnyataide14:06:01

@zzamboni: thanks man ❤️

vinnyataide14:06:33

@hrathod and how I could proceed with a figwheel script that I run with clojure main? I dont see this option with cider

hrathod14:06:56

I am not a figwheel expert, but I think that lein figwheel and then editing files was the normal workflow

hrathod14:06:15

the changes should then show up in the browser

plexus17:06:49

@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

plexus17:06:29

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

jasonjckn21:06:06

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

jasonjckn21:06:39

afaik it always returns nil