Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an extension or mode in Emacs similar to surround.vim?

Surround.vim is a nifty vim extension that allows you to surround blocks of text with , brackets, braces, and pretty much any arbitrary "surround" character. It supports paragraph and word surround, but I frequently use it in visual mode. I'm playing around with Emacs and wondering if there's something similar; something that will let me highlight a region and then have the marked region (or rectangle) enclosed with braces, brackets or tags.

like image 344
Chow Avatar asked Apr 30 '10 17:04

Chow


1 Answers

Maybe wrap-region is what you need.

smartparens is another excellent option if need to wrap something with delimiters, tags, etc.

like image 112
Bozhidar Batsov Avatar answered Sep 19 '22 19:09

Bozhidar Batsov