Does anyone know how to change autopair.el in such a way that, when you have a region, pressing ( results in the point being before the ( instead of within the brackets?
It has been annoying me for a long time, because whenever I have a region selected and I want to insert brackets, I do not want point to be within brackets.
Standard behavior SELECTED REGION TEXT -> ([point] TEXT )
Preferable behavior SELECTED REGION TEXT -> [point]](TEXT)
The dirty version: change
1+to1-in line 952 ofautopair.el. I currently don’t see a way to do that kind of modification cleanly. I have filed an issue to make this customization easier.