From: Le Wang <l26wang@gmail.com>
To: Esben Stien <b0ef@esben-stien.name>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Select Text Inside Parentheses
Date: Sun, 2 Sep 2012 22:40:22 +0800 [thread overview]
Message-ID: <CAM=K+ioyjh1Jb8gpdZMfTOHLtUX70ihZdzXLCxiP+44tLO=miA@mail.gmail.com> (raw)
In-Reply-To: <87d324tvgs.fsf@quasar.esben-stien.name>
[-- Attachment #1: Type: text/plain, Size: 565 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1150 bytes --]
next prev parent reply other threads:[~2012-09-02 14:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-01 12:11 Select Text Inside Parentheses Esben Stien
2012-09-01 16:34 ` Drew Adams
2012-09-02 1:06 ` Esben Stien
2012-09-02 1:01 ` Drew Adams
2012-09-02 13:17 ` Esben Stien
2012-09-02 13:29 ` Drew Adams
2012-09-02 14:40 ` Le Wang [this message]
2012-09-04 10:17 ` Andreas Röhler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAM=K+ioyjh1Jb8gpdZMfTOHLtUX70ihZdzXLCxiP+44tLO=miA@mail.gmail.com' \
--to=l26wang@gmail.com \
--cc=b0ef@esben-stien.name \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.