3 ms·
I did something far cruder which is also how paredit itself works internally. Redefine the meaning of moving up, down, left or right by syntactic token. In Pyt
by mickeyp 4y ago
I did something far cruder which is also how paredit itself works internally.
Redefine the meaning of moving up, down, left or right by syntactic token. In Python up/down is either by block (try, if, etc.) or by s-exp ([], {}, etc.) which Emacs is already capable of doing.
By doing that you can effectively teach paredit a little bit about how the language works, as you're moving point around for it.
Note that my crude hack was never more than a prototype. Though it did work in more places than it ought to.