all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Timothy Hobbs <tim.thelion@gmail.com>
To: EMACS list <help-gnu-emacs@gnu.org>
Subject: Re: How can I change the keys?
Date: Fri, 11 Apr 2008 22:13:36 -0700	[thread overview]
Message-ID: <m38wzjslj3.fsf@xo-10-E6-7E.localdomain> (raw)
In-Reply-To: <6408dc50-1810-4bc1-b145-bc4b3e6fce84@n1g2000prb.googlegroups.com> (Xah Lee's message of "Fri\, 11 Apr 2008 12\:50\:56 -0700 \(PDT\)")

I do not know about Macs, but in both windows and X11, remapping of the keyboard is easy, and safe.  With windows, I suggest http://www.randyrants.com/2006/07/sharpkeys_211.html which, as of a few years ago worked like a charm(my dad's even used it on vista, though only for the CAPS-LOCK/SHIFT switch.  xmodmap is also possible to use, though it has some definite complications.  xmodmap has the advantage that in my suggested method, you will be able to press shift-1 and get 1, while 1 will give you ! .  Here is how I suggest doing this project.

1. Get a piece of paper(ya, like the white crinkly stuff you make spitballs with).

2. Get a pencil or pen, or prick yourself with a needle, or some other writing utensil.

3. Open up a terminal emulator in a window manager that's sane.

4. Type 'xev'.

5. Type '1', write down the KEYCODE(for '1' this is 10), that xev printed into the terminal emulator window, onto your piece of paper.  Now press shift-1, and write down the KEYSYM on your sheet, for shift-1 this is exclam.

REPEAT for all numbers.

6. Kill the xev window.

7. Type "cd ~/; nano .xmodmap-numbershifter RET" into the terminal emulator window.

8. Type "keycode KEYCODE = KEYSYM NUMBER RET" into your terminal emulator window.

EXAMPLE: keycode 10 = exclam 1

REPEAT for the rest of your keys.

9. Save the file in nano.

10. Type xmodmap .xmodmap-numbershifter

11. Press some numbers on both the top and the keypad, using shift on the top as well to test it.

12. Type "nano .xsession RET"

13. Type "xmodmap /home/NAME/.xmodmap-numbershifter RET"

14. Restart X

15. Repeat step 11

OPTIONAL

16. If the key mappings went away... You should try steps 12 and 13 on .xinitrc instead of .xsession...

Hope this helps.

Timothy




  reply	other threads:[~2008-04-12  5:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-10 22:15 How can I change the keys? Cesar_BCN
2008-04-10 22:53 ` weber
2008-04-11 19:50 ` Xah Lee
2008-04-12  5:13   ` Timothy Hobbs [this message]
     [not found]   ` <mailman.10288.1207977249.18990.help-gnu-emacs@gnu.org>
2008-04-12  9:13     ` Rupert Swarbrick

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=m38wzjslj3.fsf@xo-10-E6-7E.localdomain \
    --to=tim.thelion@gmail.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.