redguardtoo / emacs.d

Fast and robust Emacs setup.
http://blog.binchen.org
GNU General Public License v3.0
2.39k stars 619 forks source link

How to use wrap-region in evil-mode? #1016

Closed sbwcwso closed 1 year ago

sbwcwso commented 1 year ago

I want to use the wrap-region, but it doesn't work in the evil mode, whem I type 'V' to select the region, but it works well outside the evil mode.

How can I make it work in evil-mode, or is there anything similar function in your setting?

redguardtoo commented 1 year ago

Evil users usually use builtin evil text object, evil-surround, evil-matchit.

sbwcwso commented 1 year ago

Evil users usually use builtin evil text object, evil-surround, evil-matchit.

I am a novice of emacs, can you give me an example please?

For example, I want to implement the following functions:

emacs-how-to-wrap-selection-in-org-mode-source-code-block

sbwcwso commented 1 year ago

I have found the package there, emacs-evil/evil-surround: you will be surrounded (surround.vim for evil, the extensible vi layer), thank you very much.