From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Peterson Newsgroups: gmane.emacs.help Subject: Re: remapping keys Date: Tue, 19 Feb 2008 16:32:32 -0800 Organization: University of California, Davis Message-ID: <87skzompr3.fsf@nospam.please.ucdavis.edu> References: <47b96d58$0$10623$4fafbaef@reader2.news.tin.it> <47b9b97c$0$37201$4fafbaef@reader3.news.tin.it> <47bb04c2$0$17944$4fafbaef@reader1.news.tin.it> From: Sam Peterson NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203468041 4880 80.91.229.12 (20 Feb 2008 00:40:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2008 00:40:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 20 01:41:05 2008 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 1JRd1C-0001lP-Fm for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2008 01:41:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRd0h-0008Fp-GL for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Feb 2008 19:40:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!ucdavis!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: c-76-114-40-74.hsd1.ca.comcast.net Original-X-Trace: skeeter.ucdavis.edu 1203467500 28295 76.114.40.74 (20 Feb 2008 00:31:40 GMT) Original-X-Complaints-To: usenet@ucdavis.edu Original-NNTP-Posting-Date: Wed, 20 Feb 2008 00:31:40 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:OrDJFSy5v9/p7bL5PZ5C5WoY6J4= Original-Xref: shelby.stanford.edu gnu.emacs.help:156316 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:51686 Archived-At: Seldon on Tue, 19 Feb 2008 17:33:53 +0100 didst step forth and proclaim thus: > Juanma wrote: >> On Monday 18 February 2008 18:00, Seldon wrote: >>> [...] >>>> I personally prefer to do those kinds of "inconvenient keyboard" things >>>> globally by choosing another keyboard layout (e.g. with >>>> gnome-keyboard-properties). >>> I would prefer a more selective approach, remapping only the keys I need. >> >> Try with function keyboard-translate. >> > I read the documentation, but I didn't understood how to call or use > this function. > > I think I will follow your advice and switch to an US layout. > > Bye. Wow, a whole thread on remapping keys, and NOBODY mentions global-set-key or local-set-key. ;; just an example, change the keys to whatever you like (global-set-key "{" '(lambda () (interactive) (insert "a"))) Many will argue that keyboard translate is better. Whatever works... -- Sam Peterson skpeterson At nospam ucdavis.edu "if programmers were paid to remove code instead of adding it, software would be much better" -- unknown