From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nic.d.m.1@googlemail.com Newsgroups: gmane.emacs.help Subject: custom keyboard layout? howto redefine keys? Date: Thu, 9 Apr 2009 16:40:56 -0700 (PDT) Organization: http://groups.google.com Message-ID: <84995d58-0858-4762-b317-8935fdfafcf9@f19g2000yqo.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1239380651 30936 80.91.229.12 (10 Apr 2009 16:24:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Apr 2009 16:24:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 10 18:25:30 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 1LsJXb-0007zv-MU for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Apr 2009 18:25:19 +0200 Original-Received: from localhost ([127.0.0.1]:56383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsJWD-00023W-4f for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Apr 2009 12:23:53 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!f19g2000yqo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 62.149.18.147 Original-X-Trace: posting.google.com 1239320456 4339 127.0.0.1 (9 Apr 2009 23:40:56 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 9 Apr 2009 23:40:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f19g2000yqo.googlegroups.com; posting-host=62.149.18.147; posting-account=_7N1JQoAAAB0FctXxwlvpYS2S0bN82NB User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168340 X-Mailman-Approved-At: Fri, 10 Apr 2009 12:22:02 -0400 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:63635 Archived-At: Is there a way to customize the keyboard layout within emacs? For example if I want "the key on my keyboard labeled 'a' behave like that labeled 'b' I think the code for my .emacs file should be something like this: (global-set-key ["Key labeled 'a' on my keyboard"] 'ucs-insert 0062) I am new to emacs and don't know what the correct syntax for "Key labeled 'a' on my keyboard' could be. So I tried to make f5 instead behave like b: (global-set-key [f5] 'ucs-insert 0062) Then I get an error message: "Wrong type argument: commandp, (ucs- insert 62)" if I restart emacs and press f5. (For example (global-set-key [f1] 'ucs-insert) works, but then it asks which UTF-8 character I want to insert, that's not what I want) Any ideas? thanks nic