DogLooksGood / parinfer-mode

Parinfer for Emacs :)
GNU General Public License v3.0
407 stars 33 forks source link

Use with Evil. #3

Closed DogLooksGood closed 8 years ago

DogLooksGood commented 8 years ago

The parinfer-indent or parinfer-paren should be called after very command in evil normal state and evil visual state.

jiegec commented 8 years ago

Potential candidates:

evil-{normal,visual}-state-{entry,exit}-hook
evil-{normal,visual}-post-command
DogLooksGood commented 8 years ago

I think using both both parinfer-mode and evil-state may be too complex. Need to find a good combination.

DogLooksGood commented 8 years ago

I think using evil-cleverparens will be a good idea, just like nvim-parinferjs + vim-sexp. Actuallly have Paren Mode + Indent Mode in evil-normal-state is too verbose.