From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.help Subject: Re: keyboard-translate working for Control but not for Alt Date: Tue, 04 Aug 2009 19:18:54 +0200 Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249407706 12064 80.91.229.12 (4 Aug 2009 17:41:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2009 17:41:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 04 19:41:39 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MYO14-0004i3-HS for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 19:41:38 +0200 Original-Received: from localhost ([127.0.0.1]:57752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYO13-0004xV-Ml for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 13:41:37 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!de-l.enfer-du-nord.net!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-b.proxad.net!nnrp9-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Cancel-Lock: sha1:rA0mVsz3/iZoBxAw4bJ/t6/K+yQ= Original-Lines: 29 Original-NNTP-Posting-Date: 04 Aug 2009 19:18:55 MEST Original-NNTP-Posting-Host: 82.240.200.149 Original-X-Trace: 1249406335 news-3.free.fr 7796 82.240.200.149:50776 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:171558 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66738 Archived-At: Elena writes: > Hello, > > since I use a Dvorak keyboard, I'd like to swap C-x and C-t, as it is > suggested here: > > http://www.emacswiki.org/emacs/DvorakKeyboard#toc4 > > The proposed code performs its task: > > http://www.emacswiki.org/emacs/DvorakKeyboard#toc4 > > (keyboard-translate ?\C-x ?\C-t) > (keyboard-translate ?\C-t ?\C-x) > > Out of curiosity, I tried to swap M-x and M-t as well: > > (keyboard-translate ?\M-x ?\M-t) > (keyboard-translate ?\M-t ?\M-x) Use instead (global-set-key (kbd "M-x") 'execute-extended-command) (global-set-key (kbd "M-t") 'transpose-words) In contrast to C-x, M-x and M-t are not prefix keys. So it is not necessary to use a keyboard-translation.