4 ms·
Great that you are a Spacemacs user now and glad that you like my tutorials. So, could you be more specific about how vim-sexp works? If you want to visual sel
by tuhdo 11y ago
Great that you are a Spacemacs user now and glad that you like my tutorials.
So, could you be more specific about how vim-sexp works? If you want to visual select sexp from symbol and expanding outward, uses expand-region: https://github.com/magnars/expand-region.el https://github.com/magnars/expand-region.el. Same for string. Then you can use smartparens: https://github.com/Fuco1/smartparens https://github.com/Fuco1/smartparens to wrap around by simply pressing "(". It is all in Spacemacs now, and you can explore further with evil-lisp-state commands, bound to ", k".
- hammerandtongs 11y agoevil-surround is the more idiomatic way to do smartparens stuff. https://github.com/guns/vim-sexp https://github.com/guns/vim-sexp This is actually an open problem in evil/emacs at the moment. Would be nice to sort out.
- tuhdo 11y agoI'm pretty sure you can do the same thing with expand-region and smartparens combined and is more general than manipulating sexp.
- ane 11y agoThere's also evil-lisp-state (which is essentially a modal interface to smartparens), https://github.com/syl20bnr/evil-lisp-state https://github.com/syl20bnr/evil-lisp-state, and evil-smartparens (https://github.com/expez/evil-smartparens https://github.com/expez/evil-smartparens) which makes the default motion operators work better with sexps.