From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Timothy Hobbs Newsgroups: gmane.emacs.help Subject: Re: How can I change the keys? Date: Fri, 11 Apr 2008 22:13:36 -0700 Message-ID: References: <5065460c-b475-4934-838e-f6c9bf5f9189@a23g2000hsc.googlegroups.com> <6408dc50-1810-4bc1-b145-bc4b3e6fce84@n1g2000prb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207977284 14919 80.91.229.12 (12 Apr 2008 05:14:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Apr 2008 05:14:44 +0000 (UTC) To: EMACS list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 12 07:15:16 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JkY56-0006A7-38 for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Apr 2008 07:15:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkY4S-0004SC-29 for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Apr 2008 01:14:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JkY3z-0004Qq-HE for help-gnu-emacs@gnu.org; Sat, 12 Apr 2008 01:14:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JkY3x-0004OF-9I for help-gnu-emacs@gnu.org; Sat, 12 Apr 2008 01:14:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkY3w-0004Nz-W8 for help-gnu-emacs@gnu.org; Sat, 12 Apr 2008 01:14:05 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JkY3w-0007md-QO for help-gnu-emacs@gnu.org; Sat, 12 Apr 2008 01:14:04 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so715316wah.10 for ; Fri, 11 Apr 2008 22:14:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:references:from:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=/LDiqT+obE1NtRQNGNAS95+af4r0LSIZBjYfPpJUG5Q=; b=b8RQUgPpRXqQOSJxyBLStsqVwwbBveQBdCQCoRs3itSMat155DPguYNolourDxzfQln1htLkORztoUx35G+PAdcK30Q8daChxQusQq3MFwGn/wZKzjfaxCrzLZq5f1nZuAop3nAneOHa9g2ghtnOAw+k2vefJ/9f56PJLZfpsyg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:references:from:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=r4TEsAtoEOtD3LzJjtqTN2KynFZ2zMJS6x7gV8eMc/vJzyLIgiey0cg9V4tlgoR9Rsfn8Q3mR8kECRZS6Xs9QpCE1a/Renxo1Zv17cBRO2Uy6q52JLAUauYWX1XguLePdAhPlbZqPxWbHrNOjdFzCByGtIIoBRH3vBPnO5MoJvs= Original-Received: by 10.115.73.20 with SMTP id a20mr1134212wal.213.1207977242643; Fri, 11 Apr 2008 22:14:02 -0700 (PDT) Original-Received: from localhost ( [71.112.111.114]) by mx.google.com with ESMTPS id n38sm8324697wag.2.2008.04.11.22.13.59 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Apr 2008 22:14:01 -0700 (PDT) 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\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53252 Archived-At: 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