How to get TextMate text quotes in Emacs?

In textmate, when there is a current selection, I press the "and the choice is in quotation marks" key. The same thing happens with other balanced characters, such as (, {, [and ".

Am I missing something obvious in Emacs configuration that would allow similar behavior when using cue mode, or do I need to rip out elisp and write something?

+6
emacs
source share
3 answers
+3
source share

wrap-region.el from this guy's blog blog will do what you are looking for.

Paredit will complete the TextMate style citation. When you enter one part of a pair (quotation marks, brackets, parentheses, etc.), the second will be inserted and the insertion point will move between them, like TextMate.

+6
source share

You should check out these old, very similar questions:

Automatically closing braces in Emacs?

Emacs typeover skeleton-pair-insert-maybe

Although the right answer is Joao; I am going to go and change my answer to these questions to indicate autopilot.

0
source share

All Articles