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

  1. Xref: sparky comp.emacs:4098 gnu.emacs.sources:980
  2. Newsgroups: comp.emacs,gnu.emacs.sources
  3. Path: sparky!uunet!ukma!gatech!asuvax!ncar!sunny!southern
  4. From: southern@sunny.NoSubdomain.NoDomain (Lawrence Buja)
  5. Subject: Re: ]-mode   (was Re: hand injuries
  6. Message-ID: <1993Jan28.153059.9096@ncar.ucar.edu>
  7. Sender: news@ncar.ucar.edu (USENET Maintenance)
  8. Reply-To: southern@ncar.ucar.edu
  9. Organization: National Center for Atmospheric Research
  10. References: <9301261718.AA14771@larynx.cs.rochester.edu> <RODNEY.93Jan27143020@cabot.balltown.cma.com>
  11. Distribution: usa
  12. Date: Thu, 28 Jan 1993 15:30:59 GMT
  13. Lines: 37
  14.  
  15. rodney@cabot.balltown.cma.com (Rodney Peck) writes:
  16. >While it looks like you've done a lot of work to get this to function,
  17. >there's a much easier way...
  18. >
  19. >(define-key global-map "]" esc-map)
  20. >(define-key esc-map    "]" 'self-insert-command)
  21. >
  22. >will make ] act like escape everywhere at the top level and will
  23. >let you actually type a ] by pressing it twice.
  24.  
  25.  Using esc-map is not any easier and it really degrades the generalness
  26.  of this method.
  27.  
  28.  The intent is NOT to simply redefine the ] key to be an ESC key.
  29.  
  30.  I already have a large number of ESC- sequences defined, either through
  31.  the Sun hot keys (L1-L10, F1-F12, R1-R15 which generate those ESC-[nnn
  32.  sequences) or my own ESC-alpha definitions for short-cuts.
  33.  
  34.  I want ] to be my own personal prefix that I can define in any manner
  35.  that I want without worrying about overridding or getting overridden by
  36.  any other existing esc-maps.
  37.  
  38.  What this method does is make ] into it's own, separate prefix which
  39.  acts like ESC, but is not ESC.  It is quite separate from any ESC
  40.  sequences.  Essentially it doubles the number of prefixed hot keys that
  41.  are available.  It also reflects my distaste for long CTL-c sequences.
  42.  
  43.  And ] is available in this definition by simply typing ]].  Since I
  44.  very rarely have the need to type ], it's not a problem for my needs.
  45.  If you wanted, you could define any other plain key you wanted in this
  46.  manner.
  47.  
  48.  
  49. /\      Lawrence Buja           Climate and Global Dynamics Division
  50.   \_][  southern@ncar.ucar.edu  National Center for Atmospheric Research
  51.       \_________________________Boulder,_Colorado___80307-3000__________
  52.