home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.emacs:4098 gnu.emacs.sources:980
- Newsgroups: comp.emacs,gnu.emacs.sources
- Path: sparky!uunet!ukma!gatech!asuvax!ncar!sunny!southern
- From: southern@sunny.NoSubdomain.NoDomain (Lawrence Buja)
- Subject: Re: ]-mode (was Re: hand injuries
- Message-ID: <1993Jan28.153059.9096@ncar.ucar.edu>
- Sender: news@ncar.ucar.edu (USENET Maintenance)
- Reply-To: southern@ncar.ucar.edu
- Organization: National Center for Atmospheric Research
- References: <9301261718.AA14771@larynx.cs.rochester.edu> <RODNEY.93Jan27143020@cabot.balltown.cma.com>
- Distribution: usa
- Date: Thu, 28 Jan 1993 15:30:59 GMT
- Lines: 37
-
- rodney@cabot.balltown.cma.com (Rodney Peck) writes:
- >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.
-
- Using esc-map is not any easier and it really degrades the generalness
- of this method.
-
- The intent is NOT to simply redefine the ] key to be an ESC key.
-
- I already have a large number of ESC- sequences defined, either through
- the Sun hot keys (L1-L10, F1-F12, R1-R15 which generate those ESC-[nnn
- sequences) or my own ESC-alpha definitions for short-cuts.
-
- I want ] to be my own personal prefix that I can define in any manner
- that I want without worrying about overridding or getting overridden by
- any other existing esc-maps.
-
- What this method does is make ] into it's own, separate prefix which
- acts like ESC, but is not ESC. It is quite separate from any ESC
- sequences. Essentially it doubles the number of prefixed hot keys that
- are available. It also reflects my distaste for long CTL-c sequences.
-
- And ] is available in this definition by simply typing ]]. Since I
- very rarely have the need to type ], it's not a problem for my needs.
- If you wanted, you could define any other plain key you wanted in this
- manner.
-
-
- /\ Lawrence Buja Climate and Global Dynamics Division
- \_][ southern@ncar.ucar.edu National Center for Atmospheric Research
- \_________________________Boulder,_Colorado___80307-3000__________
-