From: david@adboyd.com (J. David Boyd)
Subject: Re: Keyboard macro with Isearch
Date: Thu, 11 Aug 2005 15:32:02 -0400 [thread overview]
Message-ID: <m3y8781d8t.fsf@freewill.adboyd.com> (raw)
In-Reply-To: ddg2qd$kti$1@sea.gmane.org
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> J. David Boyd wrote:
> > I've got this in my .emacs. It does a research regexp Isearch to look
> > for a '{' as the only character on a line. I also have a
> > corresponding one using regexp Isearch to move forward looking for a
> > '}' on a line. (I use these in C programming).
> >
> > These don't stick after call Isearch. Maybe this would be a step in
> > the right direction for you.
> >
> > (fset 'start-of-function [?\C-u ?\C-R ?^ ?{ ?$ ?\C-m])
> > (global-set-key (kbd "C-{") 'start-of-function)
>
> I don't know what you mean by "stick after call Isearch". But these
> avoid the problem reported by the OP by explicitly terminating isearch,
> with C-m.
That's what I meant by 'stick'... Sorry for the sloppy nomenclature...
>
> And to find the beginning or end of a function definition, Emacs already
> has C-M-a and C-M-e.
>
Ha! I've been using emacs for 8 years now, and I didn't know that. Thanks
for the info! (I do like my mapping better, so maybe I'll reset my defaults)
Dave in Largo, FL
next prev parent reply other threads:[~2005-08-11 19:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-10 2:40 Keyboard macro with Isearch Aaron S. Hawley
2005-08-10 13:55 ` J. David Boyd
2005-08-11 17:44 ` Kevin Rodgers
2005-08-11 19:32 ` J. David Boyd [this message]
[not found] <Pine.A41.4.58.0508221345420.39610@elk.uvm.edu>
2005-08-22 17:55 ` Aaron S. Hawley
2005-10-29 15:45 ` Aaron S. Hawley
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=m3y8781d8t.fsf@freewill.adboyd.com \
--to=david@adboyd.com \
/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.