Fork me on GitHub
#spacemacs
<
2017-12-15
>
practicalli-johnny01:12:49

This user.clj namespace comes from the lein-figwheel template and gives an easy way to run CLJS projects from Emacs. I set cider-cljs-lein-repl in the dotspacemacs/user-config section of .spacemacs file to make clojurescript-jack-in run the correct commands. The user.clj namespace is the default dev namespace when a clojure repl runs.

practicalli-johnny01:12:11

(setq cider-cljs-lein-repl
  "(do
    (user/fig-start)
    (user/cljs-repl))")

justinlee01:12:49

Thanks @jr0cket. I’ll take a look. I eventually got it to work by adding some weasel code to my main code, adding some middleware, and then pasting some magical invocation from the weasel GitHub page into the cider repl.

practicalli-johnny01:12:53

Was that for boot? Curious to know what you got working as when I tried modern-cljs previously I never got anything to work

practicalli-johnny01:12:14

that was a while ago though

justinlee03:12:03

Yes it was for boot. The steps were to (1) require weasel and call repl/connect in the main application code, (2) use the cljs-repl target in boot, (3) in cider (require 'weasel.repl.websocket) and then issue this magic:

(cemerick.piggieback/cljs-repl
        (weasel.repl.websocket/repl-env :ip "0.0.0.0" :port 9001))

vuuvi14:12:38

how long has everyone here been using spacemacs?

jeff.terrell15:12:02

2–3 years, somewhere in there. Hard to believe it's been that long…Spacemacs still feels like a fun new toy to me.

vuuvi15:12:57

I think I’m around there as well, I’ve only recently really started digging into the meat of spacemacs and focusing on learning as much as I can

chris15:12:45

I think february of 2016? so almost 2 years now I think

alandipert15:12:52

i have been souring on it the past couple months... it has crashed on me a couple times and my confidence in emacs was really shaken

alandipert15:12:04

although i'm not sure if the problem is emacs, spacemacs, or something in my configuration

vuuvi15:12:33

tbh @alandipert it’s probably some bitchy mix of all 3 hahaha

chris15:12:33

I would probably leave it if something better came along

chris15:12:40

unfortunately I don't really see that happening

alandipert15:12:42

i have a theory that it might be better for my editor to be much simpler, and for me to lean more on the shell for my workflow

alandipert15:12:03

to see, ive been using this editor vis as much as possible https://github.com/martanne/vis

vuuvi15:12:16

oh interesting

jeff.terrell16:12:31

Looks pretty interesting, @alandipert! While I still love Spacemacs, I can understand the desire for something simpler and cleaner (and legacy-free). Would you say you've made the switch over to vis, or are you still evaluating it?

alandipert16:12:53

i've switched to it in the areas i still used vim, like as EDITOR. and i have tried to use it at work for node.js dev with mixed results

alandipert16:12:18

in the near future i'd like to write something like inferior-lisp for it. then i can use it for my lisp dev

alandipert16:12:00

although, i'm thinking a simpler approach would be, start a lisp reading from a fifo, and then make a vis shortcut that pastes to the fifo and i see the result in an adjacent tmux pane

alandipert16:12:24

managing processes is one of the many things that emacs does that seems out of the purview of an editor, perhas

jeff.terrell16:12:24

Sounds cool. I'd be interested to hear how it all goes for you. Do you post about such explorations somewhere?

vuuvi16:12:37

I’ve also found that I when I try to get the bare bones tooling, there’s a lot of times where I really miss a nice gui or a better visualization of the information I am trying to access.

vuuvi16:12:19

for example, a colleague showed me jetbrain’s datagrip recently, and I felt like my using the console to access databases was a completely inferior tool.

alandipert16:12:43

jeff.terrell no but i can continue to post them here since it interests you :-)

jeff.terrell16:12:56

Thanks. simple_smile Hmm, how about #editors, since it isn't really about Spacemacs? (I'm there too.)

alandipert16:12:10

oh sure, i didn't know about that one

alandipert16:12:34

alexkeyes i have used and felt that way about datagrip in the past also

vuuvi16:12:08

@jeff.terrell I didn’t know about that either

alandipert16:12:39

but i feel now like in the long term, anything like that needs to be broken into pieces and customized. like, now if i did SQL i would use it through R and use R to make programmable visualizations

vuuvi16:12:05

I see, you wouldn’t just write straight SQL

vuuvi16:12:11

what about visualizing data?

vuuvi16:12:19

like a SHOW TABLES; query or the like

alandipert16:12:40

oh, well i would write straight SQL... but i would use something that could make graphics to visualize it

alandipert16:12:04

since looking at pages of counts in a table or result set, its impossible to see trends and outliers

vuuvi16:12:55

okay that makes sense

vuuvi16:12:08

also off topic but does anyone know to how to set the python repl to python3?

chris17:12:26

ln -s python3 python

chris17:12:45

probably with a -f in there

chris17:12:55

(assuming the python link already exists)

chris17:12:59

there's also a bunch of pyenv things if you need something less invasive/more project based

chris17:12:06

virtualenv/autoenv

vuuvi17:12:15

yeah I saw the pyenv mode there