Article View: comp.emacs
Article #3580Re: ]-mode (was Re: hand injuries
From: Rodney Peck
Date: Wed, 27 Jan 1993 19:30
Date: Wed, 27 Jan 1993 19:30
14 lines
1265 bytes
1265 bytes
While it looks like you've done a lot of work to get this to function, there's a much easier way... (define-key global-map "]" esc-map) (define-key esc-map "]" 'self-insert-command) will make ] act like escape everywhere at the top level and will let you actually type a ] by pressing it twice. It doesn't take care of sequences like C-x ESC, but those could be handled with some define keys for those keymaps as needed. In fact, you could write a function that goes over a keymap and makes the new bindings.
Technical Details
Message-ID:
<RODNEY.93Jan27143020@cabot.balltown.cma.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!gatech!usenet.ins.cwru.edu!agate!stanford.edu!hubcap!ncrcae!ncrhub2!ncrgw2!psinntp!balltown!cabot!rodneyReferences:
<9301261718.AA14771@larynx.cs.rochester.edu> <WARSAW.93Jan26160232@anthem.nlm.nih.gov> <1993Jan27.161335.1683@ncar.ucar.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.emacs,gnu.emacs.sources Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!gatech!usenet.ins.cwru.edu!agate!stanford.edu!hubcap!ncrcae!ncrhub2!ncrgw2!psinntp!balltown!cabot!rodney From: rodney@cabot.balltown.cma.com (Rodney Peck) Subject: Re: ]-mode (was Re: hand injuries In-Reply-To: southern@sunny.NoSubdomain.NoDomain's message of Wed, 27 Jan 1993 16: 13:35 GMT Message-ID: <RODNEY.93Jan27143020@cabot.balltown.cma.com> Sender: rodney@cabot.balltown.cma.COM (Rodney Peck) Organization: Balltown Offsite References: <9301261718.AA14771@larynx.cs.rochester.edu> <WARSAW.93Jan26160232@anthem.nlm.nih.gov> <1993Jan27.161335.1683@ncar.ucar.edu> Distribution: usa Date: Wed, 27 Jan 1993 19:30:20 GMT Lines: 15