From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Paul Wallington Newsgroups: gmane.emacs.help Subject: Re: Changing key bindings of printable chars Date: Fri, 25 Jun 2004 01:55:47 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87llicjw18.fsf@indigo.shootybangbang.com> References: <2k0tudF160v27U1@uni-berlin.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088538591 26997 80.91.224.253 (29 Jun 2004 19:49:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 19:49:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 21:49:40 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfObr-0000Xi-00 for ; Tue, 29 Jun 2004 21:49:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfOdX-000665-4K for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 15:51:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-X-Trace: news.uni-berlin.de bD3XSnBNCs8McYd9MPz78wd1b7GygGvqpQ1oDZ9YsamBxDgSou X-Orig-Path: indigo.shootybangbang.com!news X-Mailer: Norman X-Attribution: jpw X-Face: R(_z-rF:grdKO.*u`n); p.i$Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19310 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19310 Michael Slass writes: > "Paul Batt" writes: > >>How can I change the key binding of a single printable character key to >>another? I need to have "z" and "Z" print "y" and "Y" and vice versa and I [...] > for Y,y,Z, and z ... > (local-set-key "Y" (lambda () (interactive) (insert "Z"))) Commands needn't be functions -- they could be simple keyboard macros, eg: (global-set-key "Y" "Z")