Article View: gnu.emacs.help
Article #188698Re: keymaps
From: Kevin Gallagher
Date: Thu, 27 Jun 1991 04:43
Date: Thu, 27 Jun 1991 04:43
29 lines
1605 bytes
1605 bytes
In article <WOLF.91Jun26020303@cauchy.stanford.edu> wolf@cauchy.stanford.edu (Andy Wolf 381N) writes: > >I'm trying to define my own keymaps and prefixes. The problem >I'm having is that I don't understand how Control-X-prefix is defined. >When I replace part of the global-map directly, as in: > >(setq ctl-g-map [nil nil nil nil nil nil nil keyboard-quit nil nil nil >nil nil n il nil nil nil nil nil nil nil nil nil nil nil nil nil nil [stuff deleted] Don't do that! >But I couldn't define a 'Control-G-prefix myself. Can anyone help? Try this: (define-prefix-command 'Control-G-prefix) (global-set-key "\C-g" 'Control-G-prefix) (define-key 'Control-G-prefix "\C-g" 'keyboard-quit) and so on. -- ---------------------------------------------------------------------------- Kevin Gallagher kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh DSC Communications Corporation Addr: MS 152, 1000 Coit Rd, Plano, TX 75075 ----------------------------------------------------------------------------
Technical Details
Message-ID:
<1991Jun27.044303.1904@digi.lonestar.org>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!optilink!digi!kgallaghReferences:
<WOLF.91Jun26020303@cauchy.stanford.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,2fb89e6f3435933b X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-06-27 01:55:45 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!optilink!digi!kgallagh From: kgallagh@digi.lonestar.org (Kevin Gallagher) Newsgroups: gnu.emacs.help Subject: Re: keymaps Message-ID: <1991Jun27.044303.1904@digi.lonestar.org> Date: 27 Jun 91 04:43:03 GMT References: <WOLF.91Jun26020303@cauchy.stanford.edu> Distribution: gnu.emacs.help Organization: DSC Communications Corp, Plano, TX Lines: 29