Fork me on GitHub
#protorepl
<
2017-03-31
>
richiardiandrea18:03:46

is there an auto-indent package for proto-repl?

seancorfield18:03:50

@richiardiandrea For Clojure, or for editing in general?

richiardiandrea18:03:10

sorry, for Clojure, when I paste I then have to TAB TAB TAB at the moment

seancorfield18:03:41

Did you follow the opinionated setup guide? i.e., do you have parinfer, paredit, etc?

seancorfield18:03:25

If so you should be able to select a whole block of code (ctl-=) and then smart indent (ctl-i).

seancorfield18:03:52

(key bindings may vary between win/mac/linux)

richiardiandrea18:03:56

I am a paredit user, and on emacs I use aggressive-indent-mode, this is the first time I am trying to use proto-repl for real 😄

seancorfield18:03:27

I switched from Emacs to ProtoREPL after Conj. Took about a week to get used to it but I love it now.

richiardiandrea18:03:53

oh, I found auto-indent, I am going to try it right now

seancorfield18:03:58

Def. recommend following Jason's "opinionated setup" -- but then turning OFF the auto-refresh of namespaces options.

richiardiandrea18:03:35

will do Sean, thank you!

seancorfield18:03:16

You won't need auto-indent installed.

richiardiandrea20:03:52

it is very weird my repl does not seem to evaluate anything...

seancorfield20:03:31

How did you start it?

richiardiandrea20:03:28

from the ui, and i am using boot , is it working with boot?

seancorfield20:03:11

Yes, I use it with Boot all the time. Did you get anything showing in the REPL panel?

richiardiandrea20:03:51

also another thing I wanted to ask, is there a way to configure things per project? for instance if the command that calls the repl is different from project to project, can I change the value of the proto-repl command?

seancorfield21:03:52

The way we do it is to configure ProtoREPL to invoke boot dev repl and have a different dev task in each project as needed.

richiardiandrea21:03:23

so I guess the answer is no 😄 ok fair enough

richiardiandrea21:03:53

ok, my dev task is actually using lumo instead of nRepl

richiardiandrea21:03:05

that is the problem

seancorfield21:03:59

Our dev task adds the proto-repl dependency which enables a bunch of stuff.

richiardiandrea21:03:54

I'll call mine proto 😉

seancorfield21:03:47

We have a default version of the task in ~/.boot/profile.boot and override it in projects' build.boot as needed.

seancorfield21:03:48

I'll be interested to hear how get on with ProtoREPL once you've got it running smoothly and you're doing day-to-day work in it.

seancorfield21:03:07

I forced myself to use it -- and not open Emacs at all -- for a full week before making a decision.

richiardiandrea21:03:11

ok I will be doing some graphs mainly but I am not planning to switch permanently, emacs has a lot of additional features I am using (like .dir-locals.el, custom functions for navigating sexps, ...)

richiardiandrea21:03:34

there is no key binding for starting a repl right?

richiardiandrea21:03:09

ups random crash

seancorfield21:03:04

Yeah, there's a key binding for starting a REPL: c-m-, l

richiardiandrea22:03:58

sorry for bombarding, but I have an error with proto-repl-chart and know nothing about how to debug it 😄

richiardiandrea22:03:24

also, the loader keeps spinning over and over for some reason

seancorfield22:03:24

I haven't played with the chart stuff, sorry.

jasongilman22:03:54

@richiardiandrea What did you do to get the error? If you open the console you should be able to see the full stacktrace too.

richiardiandrea22:03:41

ah!

nrepl-connection.coffee [sm]:178 TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.(…)(anonymous function) @ nrepl-connection.coffee [sm]:178

richiardiandrea22:03:19

is there a way to jump back and forth to a REPL?