Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bridge2!mdb From: mdb@bridge2.ESD.3Com.COM (Mark D. Baushke) Newsgroups: gnu.emacs Subject: Re: transposing C-h & DEL Message-ID: Date: 19 Jul 89 04:32:11 GMT References: <14514@umn-cs.CS.UMN.EDU> Sender: news@bridge2.ESD.3Com.COM Organization: 3Com Corp., Mountain View, CA. Lines: 35 In-reply-to: sanderso@umn-cs.CS.UMN.EDU's message of 18 Jul 89 19:36:47 GMT BCC: sanderso@umn-cs.cs.umn.edu In article <14514@umn-cs.CS.UMN.EDU> sanderso@umn-cs.CS.UMN.EDU (Steven Anderson) writes: > > How could you switch the functions of control-h and the DELETE key? > > I am using GNU Emacs 18.52.2 on a Sun 3/something > -- > -Steve Anderson > INTERNET: sanderso@umn-cs.cs.umn.edu UUCP: uunet!umn-cs!sanderso > "Beware of signs that say 'hidden driveway'"--the B-52's You might find the following function useful: (defun swap-ctl-h-and-del () "Swap the C-h and C-? keys." (interactive) ;; First make a translate table that does the identity translation. (setq keyboard-translate-table (make-string 128 0)) (let ((i 0)) (while (< i 128) (aset keyboard-translate-table i i) (setq i (1+ i)))) ;; Now alter translations of some characters. (aset keyboard-translate-table ?\C-? ?\C-h) (aset keyboard-translate-table ?\C-h ?\C-?) ) Enjoy! -- Mark D. Baushke UUCP: {3comvax,auspex,sun}!bridge2!mdb Internet: mdb@bridge2.ESD.3Com.COM