home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / emacs / help / 5276 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.6 KB

  1. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!news.u.washington.edu!ethanb
  2. From: ethanb@ptolemy.astro.washington.edu (Ethan Bradford)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: Remapping DEL key on a SUN4
  5. Date: 6 Jan 93 16:36:24
  6. Organization: U. of Washington
  7. Lines: 32
  8. Distribution: world
  9. Message-ID: <ETHANB.93Jan6163624@ptolemy.astro.washington.edu>
  10. References: <1ifcu5INNmn5@agate.berkeley.edu>
  11. NNTP-Posting-Host: kepler.astro.washington.edu
  12. In-reply-to: pedro@eerc.berkeley.edu's message of 6 Jan 1993 19:46:13 GMT
  13. TO: pedro@eerc.berkeley.edu (Peter Clark)
  14.  
  15. In article <1ifcu5INNmn5@agate.berkeley.edu> pedro@eerc.berkeley.edu (Peter Clark) writes:
  16.  
  17.    Hi all,
  18.  
  19.    I am using emacs 18.58 on a SUN 4 (Sparc 1) with a type 4 keyboard.
  20.  
  21.    I would like to remap the DEL key on the keypad from delete-backward-char
  22.    to delete-char.  I have tried in my .emacs
  23.    (global-set-key "DEL" 'delete-char)
  24.    (global-set-key "\DEL" 'delete-char)
  25.    etc. to no avail.
  26.  
  27. To insert the delete key between the quotes, move there and type
  28.    C-Q <DEL>
  29. (were by <DEL> I mean pressing the DEL key).
  30.  
  31.  
  32.    I did notice that I could do a 
  33.    M-x local-set-key DEL delete-char
  34.    while running emacs and this worked OK.
  35.  
  36. After you successfully do a command with M-X, if you want to copy that
  37. command into your .emacs file, do
  38.   C-X <ESC>
  39. (which is repeat-complex-command).  This throws you into the
  40. minibuffer with a lisp version of your last command.  Copy the line
  41. into the kill buffer (e.g. with
  42.   C-A C-K
  43. ) and exit the minibuffer with C-G.  Now you can paste the command
  44. into your .emacs file.
  45.  
  46. -- Ethan
  47.