From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: csanyipal@gmail.com (=?utf-8?B?Q3PDg8KhbnlpIFDDg8KhbA==?=) Newsgroups: gmane.emacs.help Subject: Re: How can I make my caps lock key act like a control key? Date: Wed, 16 Jul 2008 08:40:21 +0200 Message-ID: <87vdz6jpre.fsf@debian-asztal.csanyi-pal.info> References: <18469011.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216190484 22872 80.91.229.12 (16 Jul 2008 06:41:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jul 2008 06:41:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 16 08:42:12 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 1KJ0iI-0000la-A7 for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jul 2008 08:42:10 +0200 Original-Received: from localhost ([127.0.0.1]:54264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJ0hP-0000nh-Sd for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jul 2008 02:41:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJ0gk-0000dC-7Z for help-gnu-emacs@gnu.org; Wed, 16 Jul 2008 02:40:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJ0gj-0000ck-Lp for help-gnu-emacs@gnu.org; Wed, 16 Jul 2008 02:40:33 -0400 Original-Received: from [199.232.76.173] (port=46690 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJ0gj-0000ce-Hl for help-gnu-emacs@gnu.org; Wed, 16 Jul 2008 02:40:33 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:20605) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KJ0gj-0000a5-9N for help-gnu-emacs@gnu.org; Wed, 16 Jul 2008 02:40:33 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJ0gi-0000oX-8F for help-gnu-emacs@gnu.org; Wed, 16 Jul 2008 02:40:32 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KJ0gf-000063-Sl for help-gnu-emacs@gnu.org; Wed, 16 Jul 2008 06:40:29 +0000 Original-Received: from 91.102.227.98 ([91.102.227.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jul 2008 06:40:29 +0000 Original-Received: from csanyipal by 91.102.227.98 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jul 2008 06:40:29 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 91.102.227.98 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:eR2RY4B4ZaO6MHwCNcnZJ/PQVEE= X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:55624 Archived-At: emacs615 writes: > Hi, > I am having trouble mapping my caps lock key to control key in my linux > shell(NOT X). I want both the control and caps lock keys to act like control > keys. I've tried using loadkeys and I'm not getting errors, but I can't get > it to work. I've used dumpkeys to get a keymap, edited the map to where > both the caps lock and control keys have the same key code (58 i think). I > then load this map with loadkeys and there are no errors but nothing > happens. I tried opening a new shell just in case and still no changes have > occurred. Copy your kmap (my is hu.kmap.gz) to a file, say .my_console_keymap: cp /usr/share/keymaps/i386/qwertz/hu.kmap.gz ~/.my_console_keymap edit this file: mcedit ~/.my_console_keymap keycode 58 = Control control keycode 58 = Control Caps Lock came the Control key. keycode 29 = Last_Console The Left Control came the Last Console. Last Console switch to the last visited console. At console Login this load my console keymap: mcedit ~/.bash_profile sudo loadkeys ~/.my_console_keymap I hope this helps! -- Regards, Paul Csanyi http://www.freewebs.com/csanyi-pal/index.htm