[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
- replace C-s with C-f, Bruce Ingalls, 2003/02/17
- Re: replace C-s with C-f, David Kastrup, 2003/02/17
- Re: replace C-s with C-f, Bruce Ingalls, 2003/02/17
- Re: replace C-s with C-f,
David Kastrup <=
- Re: replace C-s with C-f, Stefan Monnier <address@hidden>, 2003/02/17
- Re: replace C-s with C-f, Le Wang, 2003/02/17
- Re: replace C-s with C-f, John Russell, 2003/02/17
- Keybinding std WAS: replace C-s with C-f, Bruce Ingalls, 2003/02/18
- Re: Keybinding std WAS: replace C-s with C-f, Kevin Rodgers, 2003/02/18
- Re: Keybinding std WAS: replace C-s with C-f, Hannu Koivisto, 2003/02/19
- Re: Keybinding std WAS: replace C-s with C-f, Bruce Ingalls, 2003/02/19