home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.emacs:4107 gnu.emacs.sources:981
- Newsgroups: comp.emacs,gnu.emacs.sources
- Path: 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
-
-
- 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.
-
-