This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-26
Channels
- # aws-lambda (1)
- # beginners (71)
- # boot (70)
- # bristol-clojurians (1)
- # cider (2)
- # clara (13)
- # cljs-dev (96)
- # cljsjs (6)
- # cljsrn (5)
- # clojure (74)
- # clojure-android (3)
- # clojure-austin (4)
- # clojure-dev (10)
- # clojure-russia (6)
- # clojure-spec (28)
- # clojure-uk (128)
- # clojurescript (64)
- # cursive (2)
- # datascript (18)
- # datomic (116)
- # dirac (1)
- # emacs (12)
- # events (10)
- # hoplon (109)
- # jobs (1)
- # jobs-discuss (21)
- # leiningen (2)
- # luminus (6)
- # off-topic (19)
- # om (21)
- # om-next (5)
- # onyx (4)
- # parinfer (29)
- # perun (20)
- # re-frame (53)
- # reagent (21)
- # remote-jobs (5)
- # ring-swagger (2)
- # spacemacs (6)
- # untangled (42)
- # vim (5)
hey all! i finally tried to implement something similar to aggressive-indent-mode that is combined seamlessly with parinfer.
you can try it out here: http://oakes.github.io/paren-soup/
if you notice any odd behavior, please let me know. i'd love to integrate with with my various projects but i don't trust it yet 😄
looks like it uses two-space indentation as a guide
for example:
(comment foo
bar)
[(comment foo
^ bar)]
[a (comment foo
^ bar)]
yeah and one limitation is that it doesn't currently adjust indentation when wrapping a form with delimiters
it’s tricky
@sekao: by “various projects”, how many do you have using this? 😄
http://nightcoders.net and the nightcode app?
right now, nightcode, nightlight, and http://nightcoders.net
they all use nightlight? https://github.com/oakes/Nightlight
http://nightcoders.net does. nightcode uses paren-soup on its own
oh okay, so this is implemented inside paren-soup, which uses a custom parinfer from cross-parinfer
the code for this particular feature is pretty awful right now but basically i'm using the same info from tools.reader that let me get accurate tab stop information
accurate?
i thought about revising the tab-stop part of the API: https://github.com/shaunlebron/parinfer/issues/125
well im not sure how it compares to the tab stop info you added, i think i implemented mine beforehand. i actually haven't tried just using the info from parinfer
i think it’s too customizable to make sense, but it was only returning the positions of the parent open-parens, and expecting the user to insert the indentations between them according to preferences
i have to head out, but I’ll look at cross-parinfer to see what we can merge back to core if appropriate
excellent job on night stuff 👏