[Top][All Lists]

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

Re: Keyboard macro with Isearch

From: Kevin Rodgers
Subject: Re: Keyboard macro with Isearch
Date: Thu, 11 Aug 2005 11:44:39 -0600
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

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.

And to find the beginning or end of a function definition, Emacs already
has C-M-a and C-M-e.

Kevin Rodgers

reply via email to

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