unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* custom keyboard layout? howto redefine keys?
@ 2009-04-09 23:40 nic.d.m.1
  2009-04-10  9:25 ` B. T. Raven
  0 siblings, 1 reply; 6+ messages in thread
From: nic.d.m.1 @ 2009-04-09 23:40 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-04-10 16:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-09 23:40 custom keyboard layout? howto redefine keys? nic.d.m.1
2009-04-10  9:25 ` 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

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).