Article View: gnu.emacs.help
Article #189540local key bindings
From: Lynn D Newton
Date: Fri, 25 Jan 1991 19:37
Date: Fri, 25 Jan 1991 19:37
25 lines
1626 bytes
1626 bytes
Here's a relative-beginner-in-Elisp question. (I know Emacs itself pretty well.): I have bound many keys to functions, but at the moment they are all bound globally using define-key global-map, e.g.: (define-key global-map "\^c\^a" 'abort-recursive-edit) ;C-c C-a I'm running out of keys, it's time for me to learn the right way to bind keys to local modes, and reorganize a bit. I've tried figuring out hooks et al, but I don't have enough background yet, and I need a solution. Let's say, for example, I have a named macro called do-whatever, and I would like to bind it only in rmail mode. If someone could kindly send me a simple model it would be much appreciated, and I think I can take it from there. -- ================================================================= Lynn D. Newton | System Test Motorola Core Technologies | (Department of Heuristic Neology) Tempe, AZ | "The bug stops here!" (602) 438-3739 | lynn@jazz.phx.mcd.mot.com |
Technical Details
Message-ID:
<LYNN.91Jan25143703@jazz.phx.mcd.mot.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!fauern!sun1.ruf.uni-freiburg.de!ira.uka.de!sol.ctr.columbia.edu!samsung!cs.utexas.edu!asuvax!mcdphx!jazz!lynnShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,4aaaa23329c12857,start X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-01-26 21:59:17 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!sun1.ruf.uni-freiburg.de!ira.uka.de!sol.ctr.columbia.edu!samsung!cs.utexas.edu!asuvax!mcdphx!jazz!lynn From: lynn@phx.mcd.mot.com (Lynn D Newton) Newsgroups: gnu.emacs.help Subject: local key bindings Message-ID: <LYNN.91Jan25143703@jazz.phx.mcd.mot.com> Date: 25 Jan 91 19:37:03 GMT Sender: listen@mcdphx.phx.mcd.mot.com Distribution: gnu Organization: Motorola MCD Lines: 25