Fork me on GitHub
#editors
<
2015-09-23
>
gerstree13:09:49

Is this the place to ask questions about the use of vim plugins like fireplace?

gerstree13:09:34

I have specific questions about having more than one repl session (for clj and cljs) and how that could work.

jasoncof14:09:08

Yup, this is the right place, but unfortunately, I can’t help. I use vim-fireplace, but I’m not using cljs.

jasoncof14:09:05

I’ve started a cljs repl from the clj repl, that worked. But I never tried both at the same time.

gerstree14:09:31

@mitchelkuijpers: please don't answer 'SpaceMacs'

gerstree14:09:15

@jasoncof: thanks, I stick with the REPL on the command line for now

gerstree14:09:05

But I definitely miss being able to jump to doc and source

jasoncof14:09:15

@gerstree: you mean with fireplace?

gerstree15:09:12

Yes, in vim

jasoncof16:09:50

@gerstree: K is mapped to look up symbol with doc and [<C-D> jumps to definition of a symbol

gerstree17:09:00

I know, it's just that I cannot get it to work for both cljs and clj

colin.yates18:09:03

@gerstree - can I mention ‘SpaceMacs’ then? I hear it has great reviews simple_smile

akiva18:09:46

I want to live in Spacemacs. I’d sign up for eHarmony if there was an Emacs package for it.

akiva18:09:57

(Actually, there’s no way I’d ever do that.)

gerstree18:09:57

@colin.yates: you sure can, it's just that I dream in vi and have to invest in Emacs a bit.

gerstree18:09:05

@akiva: ok then, Spacemacs is on my menu for tonight, I was told there comes a time I have to...

akiva18:09:31

If you have any questions, don’t hesitate to ask. Plenty of Spacemacs users about.

gerstree18:09:47

@akiva: Thanks, I may hold you up to this. Dinner and then the game is on.

akiva18:09:31

You bet. Happy to help.

gerstree19:09:55

@akiva: just installed according to the instructions at https://github.com/syl20bnr/spacemacs

gerstree19:09:32

Started Emacs and it's completely dead. Status line reads "Contacting host: http://tromey.com:80"

akiva19:09:03

Be patient. That’s been happening a lot lately but it is not normal.

akiva19:09:30

http://tromey.com along with others are package repositories.

gerstree19:09:33

I've been patient for over half an hour now, is that meant to be?

akiva19:09:11

Okay, yeah, that’s a bit much. Longest I waited was nine minutes but that’s mostly because I forgot it was doing that.

akiva19:09:23

This isn’t a Spacemacs problem, mind you.

gerstree19:09:44

@akiva: I guessed that. So here I am, once again figuring out a way to get out of Emacs 😉

akiva19:09:12

Hahaha, you’re going to have to Force Quit.

akiva19:09:28

Sometimes doing that and then just going back in again sorts it.

gerstree19:09:49

I figured http://tromey.com was a mirror, so I removed it from /core/core-configuration-layer.el

gerstree19:09:57

Now it's installing packages

akiva19:09:50

I haven’t gotten too deep into configuring it like that. I have a few things I’ve done.

gerstree19:09:55

Holy cow, I'm exiting Emacs for the first time in my life, without thinking. Was that really

:q

akiva19:09:18

Yep. Almost all of the usual vi bindings work everywhere.

gerstree19:09:14

Also probably not Spacemacs, but my next excercise is to enable some kind of dark mode. This will keep me awake all night.

akiva19:09:04

You’ll want [SPC] : load-theme

akiva19:09:00

I swear I spent a good half-hour going through each and every theme until I settled on one. I still want to port my vim theme to it.

gerstree19:09:47

Just accidentally found the Ctrl-P counterpart. I can check that one.

akiva19:09:22

There’s a themes-megapack you can install as well.

gerstree19:09:27

spacemacs dark will do fine for now

gerstree19:09:10

Do I need a .spacemacs file if I want to make that change permanent?

akiva19:09:29

Yeah. .spacemacs is where you want to put all configuration stuff. Forget about init.el.

gerstree19:09:19

Ok, so far so good. On to connecting to the REPL, that's where I got stuck in vim.

gerstree19:09:34

And I mean for both clj and cljs

akiva19:09:10

I’m pretty sure CLJS isn’t compatible with CIDER yet.

gerstree19:09:16

Not cider, but piggieback is supposed to work quite ok.

colin.yates20:09:10

zenburn is really nice (although I find the highlighting a little two low-contrast)

gerstree20:09:50

@akiva: Thanks for your help so far. I'm getting the gist of it. I still have to figure out how to get code highlighting and how to connect to a repl. But I will leave that for tomorrow probably.

akiva21:09:44

Right on. I still keep a few tabs open with cheat sheets.

clumsyjedi21:09:08

gerstree I’m using vim-fireplace for development and have 12 or so repls going at the same time for various projects

clumsyjedi21:09:25

if you want to talk about the vanilla vim stuff I am happy to

clumsyjedi21:09:47

I was nudged towards spacemacs in this room not too long ago

clumsyjedi21:09:00

and while it does look nice, I am pretty heavily invested in vim myself

clumsyjedi21:09:49

set -o vi in my terminal and all that

akiva21:09:52

I still use vim for quick edits.

clumsyjedi23:09:43

@gerstree have a go at that

clumsyjedi23:09:22

1. untar it
2. lein repl
3. vi src/fireplace_cljs_example/core.cljs

clumsyjedi23:09:19

then you should be able to do your normal operations, for me this include K for docs, [^d for goto source, cpp for eval form etc, cqq for quasi-repl etc

clumsyjedi23:09:26

it should be fully featured

clumsyjedi23:09:33

if that isn’t working, it means you have something in your environment that is preventing your from moving forward, maybe java, maybe ~/.lein/profiles.clj or maybe your fireplace checkout