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

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

Re: replace C-s with C-f


From: David Kastrup
Subject: Re: replace C-s with C-f
Date: 17 Feb 2003 21:18:53 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Bruce Ingalls <bingalls@CUT-this-SPAM-BLOCK.fit-zones.com> writes:

> David Kastrup wrote:
> > Bruce Ingalls <bingalls@CUT-this-SPAM-BLOCK.fit-zones.com> writes:
> > 
> >>I bound C-f to isearch-forward, as follows:
> >>
> >>   (global-set-key [(control s)] 'save-buffer)
> >>   (global-set-key [(control f)] 'isearch-forward)
> >>
> >>The bindings work, but when I want to continue a search,
> >>by hitting C-f again, it instead stops & restarts the search.
> 
> >>What is the best way to handle this?
> ...> So the answer is obvious:  add your stuff to isearch-mode-map.
> 
> Thanks for the help. I have problems with the syntax.
> At least the following compiled :)
> 
> (append 'isearch-mode-map '(define-key map "\C-f" 'isearch-repeat-forward))

What nonsense.  How about looking up the functions you are using with
C-h f ?

In this case, I'd try something like
(eval-after-load 'isearch
  (define-key isearch-mode-map ?\C-f 'isearch-repeat-forward))

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

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