unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Hans Ekbrand <hans@sociologi.cjb.net>
To: help-gnu-emacs@gnu.org
Subject: Re: remapping keys
Date: Wed, 27 Feb 2008 21:29:25 +0100	[thread overview]
Message-ID: <20080227202921.GA30378@server251> (raw)
In-Reply-To: <jwvzltvifab.fsf-monnier+gnu.emacs.help@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]

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 keys.
> >>> 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 brackets 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?
> 
> > 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.
> 
> >> 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.
> 
> Define your own keyboard layout?

Or rather just define a few remappings in .Xmodmaprc and have a line 

/usr/bin/X11/xmodmap ~/.Xmodmaprc

in .xsession.

kind regards,

--
Hans Ekbrand

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2008-02-27 20:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-18 11:35 remapping keys Seldon
2008-02-18 16:14 ` Stefan Monnier
2008-02-18 17:00   ` Seldon
2008-02-18 19:04     ` muede73
2008-02-25 10:45       ` Seldon
2008-02-19  2:01     ` Juanma
     [not found]     ` <mailman.7615.1203400883.18990.help-gnu-emacs@gnu.org>
2008-02-19 16:33       ` Seldon
2008-02-20  0:32         ` Sam Peterson
2008-02-20  2:12           ` Juanma
2008-02-20 19:53     ` Stefan Monnier
2008-02-27 20:29       ` Hans Ekbrand [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080227202921.GA30378@server251 \
    --to=hans@sociologi.cjb.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).