From: Unknown <unknown@unknown.invalid>
Subject: Re: replace C-s with C-f
Date: Tue, 18 Feb 2003 01:42:17 GMT [thread overview]
Message-ID: <Zbg4a.1041$OVn1.177@news04.bloor.is.net.cable.rogers.com> (raw)
In-Reply-To: x51y26slsi.fsf@lola.goethe.zz
David Kastrup wrote:
> 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))
>
Here is a sniplet from my init file. It's commented out, because I've wholly
given up on making Emacs work how I wish. It's obviously much smarter than
me. I'd advise you to do the same. ;) ...
;*old code* >>>>>>>>>>>>>>>>>>>
;(global-set-key [(control f)] 'isearch-forward-regexp)
;(global-set-key [(control F)] 'isearch-backward-regexp)
;(global-set-key [(control r)] 'query-replace-regexp)
;(mapcar
; '(lambda (map)
; (define-key map [(control f)] 'isearch-repeat-forward)
; (define-key map [(control F)] 'isearch-repeat-backward)
; (define-key map [(tab)] 'isearch-complete)
; (define-key map [(control s)] (lookup-key
; global-map
; [(control s)]))
; (define-key map [(control r)] (lookup-key
; global-map
; [(control r)])))
; (list isearch-mode-map minibuffer-local-isearch-map))
--
Le
next prev parent reply other threads:[~2003-02-18 1:42 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
2003-02-17 21:59 ` Stefan Monnier <foo@acm.com>
2003-02-18 1:42 ` Unknown [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='Zbg4a.1041$OVn1.177@news04.bloor.is.net.cable.rogers.com' \
--to=unknown@unknown.invalid \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).