From: David Kastrup <dak@gnu.org>
Subject: Re: replace C-s with C-f
Date: 17 Feb 2003 21:18:53 +0100 [thread overview]
Message-ID: <x51y26slsi.fsf@lola.goethe.zz> (raw)
In-Reply-To: QPa4a.27028$Mh3.8144066@twister.nyc.rr.com
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
next prev parent reply other threads:[~2003-02-17 20:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-17 18:31 replace C-s with C-f Bruce Ingalls
2003-02-17 18:39 ` David Kastrup
2003-02-17 19:35 ` Bruce Ingalls
2003-02-17 20:18 ` David Kastrup [this message]
2003-02-17 21:59 ` Stefan Monnier <foo@acm.com>
2003-02-18 1:42 ` Unknown
2003-02-18 3:15 ` John Russell
2003-02-18 19:18 ` Keybinding std WAS: " Bruce Ingalls
2003-02-18 22:36 ` Kevin Rodgers
2003-02-18 23:09 ` Hannu Koivisto
2003-02-19 20:57 ` Bruce Ingalls
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=x51y26slsi.fsf@lola.goethe.zz \
--to=dak@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.