all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: nic.d.m.1@googlemail.com
To: help-gnu-emacs@gnu.org
Subject: custom keyboard layout? howto redefine keys?
Date: Thu, 9 Apr 2009 16:40:56 -0700 (PDT)	[thread overview]
Message-ID: <84995d58-0858-4762-b317-8935fdfafcf9@f19g2000yqo.googlegroups.com> (raw)

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


             reply	other threads:[~2009-04-09 23:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-09 23:40 nic.d.m.1 [this message]
2009-04-10  9:25 ` custom keyboard layout? howto redefine keys? B. T. Raven
2009-04-10 10:18   ` nic.d.m.1
2009-04-10 15:56     ` rustom
2009-04-10 16:22     ` B. T. Raven
2009-04-10 16:39     ` harven

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

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

  git send-email \
    --in-reply-to=84995d58-0858-4762-b317-8935fdfafcf9@f19g2000yqo.googlegroups.com \
    --to=nic.d.m.1@googlemail.com \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.