Wrapping selecting text in enclosing characters in

2019-02-01 07:40发布

In Textmate I can wrap enclosing characters ('(', '[', '"', etc.) around text by selecting it and hitting the opening character. For example, if I select word and hit (, it will become (word). What does Emacs call this feature and how do I enable it?

8条回答
Explosion°爆炸
2楼-- · 2019-02-01 08:16

There is textmate-mode.

From Emacswiki:

See textmate-mode for an attempt of having the TextMate behaviour for parenthesis and quotes (auto-closing, overwriting, smart delete).

http://code.google.com/p/emacs-textmate/

查看更多
神经病院院长
3楼-- · 2019-02-01 08:19

If you use smartparens just select the text and then type the pair. Smartparens wiki: Wrapping

查看更多
登录 后发表回答