unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Sam Peterson <skpeterson@nospam.please.ucdavis.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: remapping keys
Date: Tue, 19 Feb 2008 16:32:32 -0800	[thread overview]
Message-ID: <87skzompr3.fsf@nospam.please.ucdavis.edu> (raw)
In-Reply-To: 47bb04c2$0$17944$4fafbaef@reader1.news.tin.it

Seldon <seldon@katamail.it> 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


  reply	other threads:[~2008-02-20  0:32 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 [this message]
2008-02-20  2:12           ` Juanma
2008-02-20 19:53     ` Stefan Monnier
2008-02-27 20:29       ` Hans Ekbrand

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=87skzompr3.fsf@nospam.please.ucdavis.edu \
    --to=skpeterson@nospam.please.ucdavis.edu \
    --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).