i never really liked the fact that parinfer moves the trailing paren in that situation. FWIW my implementation doesn't do that: https://github.com/oakes/parinferish in general i never want text changes to happen if only the cursor position changes