help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Select Text Inside Parentheses


From: Le Wang
Subject: Re: Select Text Inside Parentheses
Date: Sun, 2 Sep 2012 22:40:22 +0800

On Sun, Sep 2, 2012 at 9:17 PM, Esben Stien <b0ef@esben-stien.name> wrote:
I place my point on "b" in bar in this code:

(
foo
bar
baz
)

Hi Esben,

Someone has already given a lot of thought to the general problem you're trying to solve, and come up with an elegant generalized solution.

See https://github.com/magnars/expand-region.el and the accompanying screencast: http://www.youtube.com/watch?v=_RvHz3vJ3kA 

My hotkey is <M-r>

With point on "b", as you describe, I press M-r twice and the region is expanded exactly as you require.


--
Le

reply via email to

[Prev in Thread] Current Thread [Next in Thread]