home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!natinst.com!news.dell.com!texsun!digi!kgallagh
- From: kgallagh@digi.lonestar.org (Kevin Gallagher)
- Newsgroups: gnu.emacs.help
- Subject: Re: Remapping DEL key on a SUN4
- Message-ID: <1993Jan7.072629.24517@digi.lonestar.org>
- Date: 7 Jan 93 07:26:29 GMT
- References: <1ifcu5INNmn5@agate.berkeley.edu> <ETHANB.93Jan6163624@ptolemy.astro.washington.edu>
- Organization: DSC Communications Corp, Plano, TX
- Lines: 37
-
- In article <ETHANB.93Jan6163624@ptolemy.astro.washington.edu> ethanb@ptolemy.astro.washington.edu (Ethan Bradford) writes:
- >In article <1ifcu5INNmn5@agate.berkeley.edu> pedro@eerc.berkeley.edu (Peter Clark) writes:
- > I am using emacs 18.58 on a SUN 4 (Sparc 1) with a type 4 keyboard.
- >
- > I would like to remap the DEL key on the keypad from delete-backward-char
- > to delete-char. I have tried in my .emacs
- > (global-set-key "DEL" 'delete-char)
- > (global-set-key "\DEL" 'delete-char)
- > etc. to no avail.
- >
- >To insert the delete key between the quotes, move there and type
- > C-Q <DEL>
- >(were by <DEL> I mean pressing the DEL key).
-
- Using "\C-?" should also work. C-? is fairly standard notation for the DEL
- character.
-
- However, this will not solve your problem, because most major modes redefine
- the binding of the DEL character one of the variations of
- delete-backward-char, like backward-delete-char-untabify, in the major mode
- local map, which overrides the global map.
-
- > I did notice that I could do a
- > M-x local-set-key DEL delete-char
- > while running emacs and this worked OK.
-
- Which changed the binding in the active buffer at the time you executed the
- local-set-key function. Other buffers were not affected.
-
- To change the binding in major modes that you use, you will have to use the
- setup hook for each major mode and assign the hook to a function which
- executes the local-set-key function to change the binding of DEL.
- --
- ----------------------------------------------------------------------------
- Kevin Gallagher kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
- DSC Communications Corporation Addr: MS 152, 1000 Coit Rd, Plano, TX 75075
- ----------------------------------------------------------------------------
-