Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!sdd.hp.com!hplabs!hpda!hpcuhb!hpindda!campbell From: campbell@hpindda.cup.hp.com (Heather Campbell) Newsgroups: comp.sys.hp Subject: Re: Novice question: Delete key on keyboard Message-ID: <4310138@hpindda.cup.hp.com> Date: 21 Sep 90 00:35:23 GMT References: Organization: HP Information Networks, Cupertino, CA Lines: 24 If you only want to swap the BACKSPACE and DELETE keys within emacs, put the following in your .emacs file. ----------------------------------------------------------------------------- (let ((the-table (make-string 128 0))) (let ((i 0)) (while (< i 128) (aset the-table i i) (setq i (1+ i)) ) ) ;; Swap ^H and DEL (aset the-table ?\177 ?\^h) (aset the-table ?\^h ?\177) (setq keyboard-translate-table the-table) ) --------------------------------------------------------------------------- Heather Campbell Standard Disclaimer: This is not an official statement of Hewlett-Packard Corp., and does not necessarily reflect the views of HP. The information above is provided completely without warranty of any kind.