Description
TL;DR:
- move to the next/previous open/closing parens/bracket/curly-brace regardless of the depth of the form
- refuse to unbalance open/closing parens/bracket/curly-brace when things are deleted
The Longer Version
evil-cleverparens is an emacs mode for making lisps easier to work with when using evil (vim-mode for emacs). It has some very neat behaviors that I think are desirable.
Starting with movements, evil-cleverparens has a form navigation that is really neat and doesn't exist in paredit. Namely that can jump to the next/previous open/closing parens/bracket/curly-brace regardless of the depth of the form. Here's a video demonstrating it. Here's the elisp code that performs it.
The other neat ability it has is it can refuse to unbalance parens when deleting. Meaning you can delete a whole line but it won't ever unbalance parens even if those parens are selected. Here's a video demonstrating it.
The common thread with these behaviors is they make you have to think less, meaning navigation and editing becomes simpler for the user. No need to think about if a sexp is up or down in order to navigate to it, just keep hitting {
or [
or ]
or }
until you're at it. No need to be careful about unbalancing parens, just delete the line and the editor will keep it balanced.
Anyways, this is just a feature request for something I'm missing from emacs. What do you think?