Wrapping selecting text in enclosing characters in Emacs

后端 未结 9 1777
情书的邮戳
情书的邮戳 2020-12-24 07:06

In Textmate I can wrap enclosing characters (\'(\', \'[\', \'\"\', etc.) around text by selecting it and hitting the opening character. For example, if I select word<

9条回答
  •  别那么骄傲
    2020-12-24 07:34

    Since Emacs 24.1(released 2012-06).
    Put this in your emacs init: (electric-pair-mode 1).
    Now If you select a word and hit (, it will become (word). Same for ", [, { etc.

提交回复
热议问题