From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Ekbrand Newsgroups: gmane.emacs.help Subject: Re: remapping keys Date: Wed, 27 Feb 2008 21:29:25 +0100 Message-ID: <20080227202921.GA30378@server251> References: <47b96d58$0$10623$4fafbaef@reader2.news.tin.it> <47b9b97c$0$37201$4fafbaef@reader3.news.tin.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YZ5djTAD1cGYuMQK" X-Trace: ger.gmane.org 1204162482 2316 80.91.229.12 (28 Feb 2008 01:34:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 01:34:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 28 02:35:07 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 1JUXfu-0003l9-Hc for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Feb 2008 02:35:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUXfO-0005QZ-GY for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Feb 2008 20:34:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUSuE-0001uL-C0 for help-gnu-emacs@gnu.org; Wed, 27 Feb 2008 15:29:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUSuC-0001t3-T0 for help-gnu-emacs@gnu.org; Wed, 27 Feb 2008 15:29:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUSuC-0001sw-NF for help-gnu-emacs@gnu.org; Wed, 27 Feb 2008 15:29:32 -0500 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUSuC-000789-4r for help-gnu-emacs@gnu.org; Wed, 27 Feb 2008 15:29:32 -0500 Original-Received: from c83-254-6-138.bredband.comhem.se ([83.254.6.138]:36018 helo=server251) by ch-smtp02.sth.basefarm.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JUSu9-0008Fr-9c for help-gnu-emacs@gnu.org; Wed, 27 Feb 2008 21:29:30 +0100 Original-Received: from hans by server251 with local (Exim 4.67) (envelope-from ) id 1JUSu5-0000zN-Vl for help-gnu-emacs@gnu.org; Wed, 27 Feb 2008 21:29:25 +0100 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-Originating-IP: 83.254.6.138 X-Scan-Result: No virus found in message 1JUSu9-0008Fr-9c. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JUSu9-0008Fr-9c 9bd82345f7aade5cf85bc1106004666f X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-Mailman-Approved-At: Wed, 27 Feb 2008 20:34:14 -0500 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:51921 Archived-At: --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 20, 2008 at 02:53:26PM -0500, Stefan Monnier wrote: > >>> Hi. I'm an Emacs newbie and I need help about remapping keyboard ke= ys. > >>> I would like to bind the curly brackets "}" and "{" to another keys, = handier > >>> to me (I have an italian keyboard, so the key sequence for the bracke= ts is > >>> quite clumsy...) > >>> What's the procedure for doing so ? > >> It all depends on how you want the remapping to behave. Do you want > >> this remapping only within Emacs? >=20 > > Yes. Why not in other applications too? To only change this for emacs seems more difficult than doing it at the X level [...] > Note that it will apply to C-x { but not to C-{ and M-{, C-f, C-g, tho > it will apply to ESC { and ESC g. I.e. it's kind of messy. >=20 > >> I personally prefer to do those kinds of "inconvenient keyboard" things > >> globally by choosing another keyboard layout (e.g. with > >> gnome-keyboard-properties). >=20 > > I would prefer a more selective approach, remapping only the keys I nee= d. >=20 > Define your own keyboard layout? Or rather just define a few remappings in .Xmodmaprc and have a line=20 /usr/bin/X11/xmodmap ~/.Xmodmaprc in .xsession. kind regards, -- Hans Ekbrand --YZ5djTAD1cGYuMQK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHxcghfCyHKnBQYU4RAhOCAKDYC1gUDZnrThkLuzwKv+mvQX1htwCgtZkG 1JCLgt8Pcl2VZy7HHXUG/OQ= =gYnt -----END PGP SIGNATURE----- --YZ5djTAD1cGYuMQK--