is there an auto-indent package for proto-repl?
@richiardiandrea For Clojure, or for editing in general?
sorry, for Clojure, when I paste I then have to TAB TAB TAB at the moment
Did you follow the opinionated setup guide? i.e., do you have parinfer, paredit, etc?
If so you should be able to select a whole block of code (ctl-=) and then smart indent (ctl-i).
(key bindings may vary between win/mac/linux)
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 😄
I switched from Emacs to ProtoREPL after Conj. Took about a week to get used to it but I love it now.
oh, I found auto-indent
, I am going to try it right now
Def. recommend following Jason's "opinionated setup" -- but then turning OFF the auto-refresh of namespaces options.
will do Sean, thank you!
You won't need auto-indent
installed.
it is very weird my repl does not seem to evaluate anything...
How did you start it?
from the ui, and i am using boot , is it working with boot?
Yes, I use it with Boot all the time. Did you get anything showing in the REPL panel?
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?
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.
so I guess the answer is no 😄 ok fair enough
ok, my dev
task is actually using lumo
instead of nRepl
that is the problem
Our dev
task adds the proto-repl
dependency which enables a bunch of stuff.
I'll call mine proto
😉
We have a default version of the task in ~/.boot/profile.boot
and override it in projects' build.boot
as needed.
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.
I forced myself to use it -- and not open Emacs at all -- for a full week before making a decision.
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, ...)
there is no key binding for starting a repl right?
ups random crash
Yeah, there's a key binding for starting a REPL: c-m-, l
sorry for bombarding, but I have an error with proto-repl-chart
and know nothing about how to debug it 😄
also, the loader keeps spinning over and over for some reason
I haven't played with the chart stuff, sorry.
np
@richiardiandrea What did you do to get the error? If you open the console you should be able to see the full stacktrace too.
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
is there a way to jump back and forth to a REPL?