home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / emacs / 4107 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.3 KB

  1. Xref: sparky comp.emacs:4107 gnu.emacs.sources:981
  2. Newsgroups: comp.emacs,gnu.emacs.sources
  3. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!usenet.ins.cwru.edu!agate!stanford.edu!hubcap!ncrcae!ncrhub2!ncrgw2!psinntp!balltown!cabot!rodney
  4. From: rodney@cabot.balltown.cma.com (Rodney Peck)
  5. Subject: Re: ]-mode   (was Re: hand injuries
  6. In-Reply-To: southern@sunny.NoSubdomain.NoDomain's message of Wed, 27 Jan 1993 16: 13:35 GMT
  7. Message-ID: <RODNEY.93Jan27143020@cabot.balltown.cma.com>
  8. Sender: rodney@cabot.balltown.cma.COM (Rodney Peck)
  9. Organization: Balltown Offsite
  10. References: <9301261718.AA14771@larynx.cs.rochester.edu>
  11.     <WARSAW.93Jan26160232@anthem.nlm.nih.gov>
  12.     <1993Jan27.161335.1683@ncar.ucar.edu>
  13. Distribution: usa
  14. Date: Wed, 27 Jan 1993 19:30:20 GMT
  15. Lines: 15
  16.  
  17.  
  18. While it looks like you've done a lot of work to get this to function,
  19. there's a much easier way...
  20.  
  21. (define-key global-map "]" esc-map)
  22. (define-key esc-map    "]" 'self-insert-command)
  23.  
  24. will make ] act like escape everywhere at the top level and will
  25. let you actually type a ] by pressing it twice.
  26.  
  27. It doesn't take care of sequences like C-x ESC, but those could be
  28. handled with some define keys for those keymaps as needed.  In fact,
  29. you could write a function that goes over a keymap and makes the new
  30. bindings.
  31.  
  32.