parinfer

2018-08-24T15:18:07.000100Z

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?(

2018-08-24T15:19:24.000100Z

im on spacemacs on the dev branch

justinbarclay 2018-08-24T16:33:59.000100Z

@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

justinbarclay 2018-08-24T16:35:49.000100Z

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

shaunlebron 2018-08-24T16:39:03.000100Z

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))

shaunlebron 2018-08-24T16:39:29.000100Z

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

2018-08-24T20:13:28.000100Z

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