Fork me on GitHub
#parinfer
<
2017-01-28
>
tianshu03:01:36

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?

sekao04:01:40

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

sekao04:01:21

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

tianshu05:01:24

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.

sekao17:01:18

interesting, i'll look into that