This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-28
Channels
- # aws (1)
- # aws-lambda (1)
- # beginners (19)
- # boot (7)
- # cider (9)
- # cljs-dev (311)
- # cljsjs (34)
- # cljsrn (8)
- # clojars (7)
- # clojure (41)
- # clojure-argentina (3)
- # clojure-russia (15)
- # clojure-spec (15)
- # clojure-uk (11)
- # clojurescript (83)
- # datomic (45)
- # emacs (7)
- # hoplon (13)
- # klipse (2)
- # lein-figwheel (1)
- # luminus (3)
- # om-next (1)
- # parinfer (5)
- # perun (1)
- # planck (1)
- # reagent (5)
- # spacemacs (2)
- # untangled (1)
- # yada (1)
and I think if adding aggressive indent to parinfer, this case should be special handled:
(print {:a 1
:b 2})
^-- insert ( at beginning
It should wrap whole sexp, but now, it becomes
((print {:a 1}
:b 2))
And maybe most people are familiar with the parinfer have both Indent Mode and Paren Mode.
It's there a plan to add a switcher to paren-soup?correct, the auto indenting doesn't work when typing delimiters right now. i hope to get that working at some point, but since that is already the current behavior i don't mind waiting until later to fix it
i don't plan to add an explicit switcher because i think switching modes is not very beginner friendly. i'm trying to get most of the benefit of paren mode without ever having to explicitly switch to it
I have implemented a fuzz mode on my emacs parinfer-mode, and post the behavior and rules here. https://github.com/DogLooksGood/parinfer-mode/blob/master/HOW_TO_WRAP_SEXP.org I hope this can help. However, there's still a problem, raising a sexp is still difficult in parinfer, for this is such a useful operate.