neil-lindquist / lisp-paredit

Paredit for Atom
MIT License
24 stars 5 forks source link

Move right in strict mode if applicable #13

Closed sjlevine closed 8 years ago

sjlevine commented 8 years ago

Hello!

Thanks again for your hard work on this wonderful Atom package!

One feature I really like about paredit in Emacs is the ability to move the cursor right if a closing brace is inserted, in some circumstances. For example, in strict mode, if the buffer looks like ((|)) and the user types a ')', then the result will be (()|) instead of the cursor not moving.

In other words, this lets you "type over" closing braces even in strict mode. I personally find this feature very useful for editing code, since I can type things like () in strict mode without the cursor stopping.

I've put together a pull request implementing this feature. What do you think? If you don't want to make this feature enabled by default, I'd be happy to make it an optional argument controllable through the package preferences.

Thanks!

Cheers, Steve

jonspalding commented 8 years ago

This works well. Thanks for the PR!

sjlevine commented 8 years ago

Excellent, thanks for accepting!