Fork me on GitHub
#parinfer
<
2018-08-24
>
Drew Verlee15:08:07

i really love parinfer, im trying to understand if some behavior is expected or if maybe my version is just behind the vision 🙂 say i have some expressions like so:

(foo (bar zoo)
     (wham bame cram))
if i make change the foo name, then it changes my code, e.g shorter and the bar function gets feed the line below. Is that desirable?(

Drew Verlee15:08:24

im on spacemacs on the dev branch

justinbarclay16:08:59

@drewverlee that sounds like you might be in the wrong mode. It sounds like you want to be in indent mode and not parent mode: https://shaunlebron.github.io/parinfer/#switching-modes

justinbarclay16:08:49

It looks like you can try using SPC t P to switch modes and see if that exhibits the behaviour you expect: http://develop.spacemacs.org/layers/+misc/parinfer/README.html

shaunlebron16:08:03

if you change “foo” to “f” in your example, and this happens…

(f (bar zoo
     (wham bame cram)))
…then that is wrong, and this is what should happen instead:
(f (bar zoo)
   (wham bame cram))

shaunlebron16:08:29

you can see the canonical behavior by trying it here: http://shaunlebron.github.io/parinfer/demo

Drew Verlee20:08:28

yep i was in the wrong mode, seems like a silly mistake.