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

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

Re: Keybinding std WAS: replace C-s with C-f


From: Bruce Ingalls
Subject: Re: Keybinding std WAS: replace C-s with C-f
Date: Wed, 19 Feb 2003 20:57:00 GMT
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2) Gecko/20021127

Kevin Rodgers wrote:
Bruce Ingalls wrote:
About the only thing missing, at this point, is that the keybindings don't show
up in the menu, to the right of the commands, ex:
    Search...            C-f

Because src/xmenu.c:menu_item_equiv_key only displays the first key sequence
returned by where-is-internal.  "First" doesn't seem to be well-defined, so
maybe if you removed the default keybinding(s) before adding your custom key
binding, it would help.

Thanks, Kevin. I tried
        (global-unset-key [(control s)])
before re-assigning it (to save) but this had no effect on the menu.
Am I using the wrong command?

Here's what I have, so far:

  (global-unset-key [(control s)])
  (global-set-key [(control s)] 'save-buffer)

  (global-set-key [(control f)] 'isearch-forward)
  (define-key isearch-mode-map [(control f)] 'isearch-repeat-forward)



reply via email to

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