home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / lucidem / help / 701 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.4 KB  |  36 lines

  1. Newsgroups: alt.lucid-emacs.help
  2. Path: sparky!uunet!caen!malgudi.oar.net!chemabs!zfs60
  3. From: zfs60@cas.org (Zhiyong John Shen)
  4. Subject: Re: scrollbars, delete, backspace
  5. In-Reply-To: irvine@ntmtv.UUCP's message of Tue, 17 Nov 1992 22:26:50 GMT
  6. Message-ID: <ZFS60.92Nov17183253@zfs60mws.cas.org>
  7. Sender: usenet@cas.org
  8. Organization: Chemical Abstracts Service, Columbus, Ohio
  9. References: <1992Nov17.222650.22439@ntmtv>
  10. Date: Tue, 17 Nov 1992 23:32:53 GMT
  11. Lines: 23
  12.  
  13.  
  14. sorry to post sloppy codes here, but my mail to chuck somehow bounced.
  15.  
  16.    2) Being a creature of habit, I cannot keep myself from hitting the 
  17.       backspace key when I want a backspace. I've tried inserting
  18.       "(global-set-key 'BS 'delete-backward-char)" in my .emacs file but it
  19.       doesn't seem to have any effect. However, I do seem to be able to get
  20.       the desired result by invoking the global-set-key command interactively.
  21.       Also, is there any good reason why I shouldn't do this, assuming I can
  22.       figure out how, that anyone knows of? 
  23.  
  24. chuck: here is how i did it, took me a while to figure out too.
  25. i am not sure if this is the best way, though.  it sometimes doesn't
  26. work in minibuffers and i still haven't figured out why. --john
  27.  
  28.  
  29.         (global-unset-key [delete])
  30.         (global-unset-key "\C-h")
  31.         (global-set-key "\C-h" 'delete-backward-char)
  32.         (global-set-key "\C-^" 'help-for-help)
  33.     (define-key global-map [delete] 'delete-char)
  34.  
  35.  
  36.