unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* remapping C-s
@ 2008-03-26 15:48 Rafal Kurcz
  2008-03-26 20:33 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rafal Kurcz @ 2008-03-26 15:48 UTC (permalink / raw)
  To: help-gnu-emacs

Hello
I'm used to C-f key combination when searching for a string.
Emacs has a default C-s key combination for that.

I put the following into my ~/.emacs file:
(global-set-key "\C-f" 'isearch-forward)

In general it works fine.
Unfortunately it does not work when I press C-f twice to search the
previous pattern again.

How should I configure emacs to do that ?

thank You for help


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: remapping C-s
  2008-03-26 15:48 remapping C-s Rafal Kurcz
@ 2008-03-26 20:33 ` Drew Adams
  2008-03-26 20:46 ` harven
  2008-03-31 18:56 ` Joel J. Adamson
  2 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2008-03-26 20:33 UTC (permalink / raw)
  To: 'Rafal Kurcz', help-gnu-emacs

> I put the following into my ~/.emacs file:
> (global-set-key "\C-f" 'isearch-forward)
> 
> In general it works fine. Unfortunately it does not work
> when I press C-f twice to search the previous pattern again.
> How should I configure emacs to do that ?

(define-key isearch-mode-map "\C-f" 'isearch-repeat-forward)

Have a look in library isearch.el for related information.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: remapping C-s
  2008-03-26 15:48 remapping C-s Rafal Kurcz
  2008-03-26 20:33 ` Drew Adams
@ 2008-03-26 20:46 ` harven
  2008-03-31 18:56 ` Joel J. Adamson
  2 siblings, 0 replies; 4+ messages in thread
From: harven @ 2008-03-26 20:46 UTC (permalink / raw)
  To: help-gnu-emacs

On Mar 26, 4:48 pm, Rafal Kurcz <pawlac...@yahoo.com> wrote:
> Hello
> I'm used to C-f key combination when searching for a string.
> Emacs has a default C-s key combination for that.
>
> I put the following into my ~/.emacs file:
> (global-set-key "\C-f" 'isearch-forward)
>
> In general it works fine.
> Unfortunately it does not work when I press C-f twice to search the
> previous pattern again.
>
> How should I configure emacs to do that ?
>
> thank You for help

(keyboard-translate ?\C-f ?\C-s)

This will make C-f send C-s instead. Everywhere, always.
Cheers


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: remapping C-s
  2008-03-26 15:48 remapping C-s Rafal Kurcz
  2008-03-26 20:33 ` Drew Adams
  2008-03-26 20:46 ` harven
@ 2008-03-31 18:56 ` Joel J. Adamson
  2 siblings, 0 replies; 4+ messages in thread
From: Joel J. Adamson @ 2008-03-31 18:56 UTC (permalink / raw)
  To: Rafal Kurcz; +Cc: help-gnu-emacs

Rafal Kurcz <pawlaczus@yahoo.com> writes:

> Hello
> I'm used to C-f key combination when searching for a string.
> Emacs has a default C-s key combination for that.
>
> I put the following into my ~/.emacs file:
> (global-set-key "\C-f" 'isearch-forward)
>
> In general it works fine.
> Unfortunately it does not work when I press C-f twice to search the
> previous pattern again.
>
> How should I configure emacs to do that ?

cua-mode?

Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109
Public key: http://pgp.mit.edu

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.







^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-31 18:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-26 15:48 remapping C-s Rafal Kurcz
2008-03-26 20:33 ` Drew Adams
2008-03-26 20:46 ` harven
2008-03-31 18:56 ` Joel J. Adamson

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).