Fork me on GitHub
#cider
<
2019-01-09
>
plexus02:01:29

I've had this issue for a little while now that when doing a cider-jack-in the cursor will jump to a (seemingly) random line in the buffer. Anyone know where that's coming from? (I'm on spacemacs)

manuel08:01:03

morning guys. Is it possible to set (in .dir-locals.el presumably) the default parameters for cider-connect-cljs? I'd like to set the host, the port, the REPL type and the build.

manuel08:01:51

Ok, cider-default-cljs-repl takes care of the REPL type. Something for the rest? 🙂

bozhidar08:01:15

I don’t think we have have vars for the default host and port, but I guess we can add those. Feel free to open a ticket.

bozhidar08:01:48

@plexus I haven’t noticed this problem. Might be some missing save-excursion or something like that.

rovanion10:01:32

Is there a command for outputting the last result of an evaluation into the buffer I'm editing?

phill10:01:21

@rovanion I don't know, but I go to the Messages buffer, yank it, and paste it. Org mode does this really nicely (supposing you want an Org document) - every time you eval a Clojure block it inserts (or updates) the result block below it.

rovanion11:01:29

That worked, thank you!

lispyclouds16:01:29

What is the way to "teach" cider to resolve a function differently? For example I want cider to treat let-flow (https://github.com/ztellman/manifold/blob/master/docs/deferred.md#let-flow) as the usual clojure let so that when i run format buffer it respects the let style of indented bindings in let-flow?

enn20:01:35

@rahul080327 there is a variable called clojure-align-binding-forms which is a list of symbols to treat like let. You can modify it with M-x customize-variable (or M-x customize-group clojure) or add to it with elisp.

lispyclouds11:01:14

Thanks for the answer @U060QM7AA, however i added it like this and still doesnt work when i run format buffer.

lispyclouds11:01:51

do i need to add the manifold namespace as well? I use it as (d/let-flow ...)

lispyclouds11:01:26

I am a new comer to emacs, pardon my ignorance

enn12:01:26

Hmm. No, you shouldn’t need to add the namespace or namespace alias. What you have looks right. I’m not sure why that wouldn’t be working.