This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-28
Channels
- # beginners (79)
- # boot (24)
- # cider (5)
- # clara (5)
- # cljs-experience (5)
- # clojure (126)
- # clojure-greece (5)
- # clojure-italy (3)
- # clojure-losangeles (1)
- # clojure-russia (1)
- # clojure-spec (21)
- # clojure-uk (31)
- # clojurescript (151)
- # community-development (20)
- # cursive (25)
- # datomic (24)
- # flambo (1)
- # fulcro (312)
- # graphql (10)
- # hoplon (20)
- # juxt (2)
- # keechma (6)
- # leiningen (7)
- # luminus (4)
- # om (4)
- # onyx (7)
- # parinfer (24)
- # protorepl (1)
- # re-frame (7)
- # reagent (13)
- # shadow-cljs (19)
- # spacemacs (14)
- # specter (14)
- # uncomplicate (22)
- # unrepl (1)
@drewverlee looks like the author isn’t in the clojure community, and therefore not in this slack rom
might wanna ask in the issue here: https://github.com/syl20bnr/spacemacs/issues/5574
oh, looks like @doglooksgood wrote it
thanks @shaunlebron i’ll see if i can’t figure out why my setup doesn’t work.
This is because the wrap command auto-formats the form after wrapping. So there are 4 changes generated - insert closing )
, insert opening (
, then insert a single space at the start of lines 2 and 3.
The problem is that the indent offset is incremented by the auto-format changes, but shouldn’t be.
I initially thought that perhaps I could ignore changes which were whitespace only when at the start of the line in the indent area, i.e. before any actual line content.
If I put the caret at the start of (bar
and start pressing space, then the :b 2})
part won’t have its indentation corrected.
Actually, having thought about it while doing the dishes, I’m not sure that’s actually the problem. I’ll debug and report back.
@cfleming: you’re right, this is a bug in parinfer
That looks a bit like the bug I ran into trying the experimental "Smart Mode" last week. I haven't had time to repro yet but it was to do with paren-wrapping and it reformatted (and broke) my code.
(that was with the current Parinfer package for Atom)
@seancorfield thanks for confirming, i’ll look into it. this happened when using with paredit?
@shaunlebron Yes, using lisp-paredit
package in Atom, with the slurp-forwards
command, with Parinfer
package and Smart Mode
enabled.