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

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

Re: [h-e-w] key-binding: C-s and ESC


From: Daniel Hegyi
Subject: Re: [h-e-w] key-binding: C-s and ESC
Date: Fri, 08 Nov 2002 19:47:04 +0000

Hi,

I'm trying this:

      (define-key isearch-mode-map "\C-f"
          (cons isearch-mode-map ?\C-S))

      (define-key isearch-mode-map "\S-\C-f"
           (cons isearch-mode-map ?\C-R))

Emacs advances the cursor one position when I do C-f. (My above settings are disregarded, it seems.)


I also inserted this into my .emacs:

(keyboard-translate ?\e ?\C-g)

After I hit ESC key I get "escape-" or "ESC-" in the minibuffer. (Depending on what action I'm canceling.) But my action doesn't get canceled

Regards,
Daniel





From: Chris Lott <address@hidden>
To: Daniel Hegyi <address@hidden>
CC: address@hidden
Subject: Re: [h-e-w] key-binding: C-s and ESC
Date: Fri, 8 Nov 2002 11:32:09 -0500 (EST)

On Fri, 8 Nov 2002, Daniel Hegyi wrote:

> Hi,
>
> I'd like to replace the standard C-s shortcut for isearch-forward-regexp
> with C-f (so that I can assign C-s to save-buffer). This worked fine with
>
> (global-set-key "\C-f" 'isearch-forward-regexp)

Here's a n entry from the keybinding guide that should help:

8.3 Defining keys to isearch map? [toc]
I am trying to get a function key kp-f3 to act just like C-s does...

       ;; Answer by address@hidden (Elijah Perminov)
       ;;
       (define-key isearch-mode-map [kp-f3]
           (cons isearch-mode-map ?\C-S))

       (define-key isearch-mode-map [S-kp-f3]
           (cons isearch-mode-map ?\C-R))



> (global-set-key [escape] 'keyboard-quit)

Here's a thread on how you might do this and why you may not want to:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&th=45402b3d6335db84&seekm=Pine.SUN.3.91.970226154419.10395K-100000%40is&frame=off

c


_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail





reply via email to

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