From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: xmodmap ( was:: Disabling nxml-mode) Date: Wed, 11 May 2011 15:38:16 -0500 Message-ID: References: <92m0bdFgm5U1@mid.individual.net> <851beb54-d923-402e-b2a3-933dee8c3bb3@q12g2000prb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1306268969 20373 80.91.229.12 (24 May 2011 20:29:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:29:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 24 22:29:25 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QOyEG-0002cd-Od for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:29:24 +0200 Original-Received: from localhost ([::1]:55380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyEG-0006Qq-8C for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:29:24 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 11 May 2011 15:37:59 -0500 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Original-Newsgroups: gnu.emacs.help In-Reply-To: X-No-Archive: yes Original-Lines: 59 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.130.27 Original-X-Trace: sv3-271i2S9OiMvUmt3Cg8vRLf/mk30eh8SZBBCXs3LhWjHQNN2ZyX+CIr2AEq4l4dJimKMrPteoiPKFmTY!OKu0fMyKK3BOhq1SSA5ynam5OB+1xm8qJmeBY93aqmmaAdL1BjPRDAj+fmllJvwUP4n4PLR5MRLZ!G/UTPzaN1Xyw9BVJ1EMiJKIrjvU/cA== Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3262 Original-Xref: usenet.stanford.edu gnu.emacs.help:186842 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-Gmane-Expiry: 2011-06-07 Xref: news.gmane.org gmane.emacs.help:81169 Archived-At: rusi wrote: > No idea if this works... Still > https://help.ubuntu.com/community/LaptopSpecialKeys > > [Id be interested to know if it does] Thanks for the link. It's a little over my head but I'll give it a try. For reference here is my question to Ubuntu forum: https://answers.launchpad.net/ubuntu/+question/156589 My current much simpler problem is shown in this commented .xmodmaprc file (same as user home directory version of .Xmodmap in other distros): clear Shift clear Lock clear Control clear Mod1 clear Mod2 clear Mod3 ! clear Mod4 ! clear Mod5 add Shift = Shift_L Shift_R add Control = Control_L Control_R add Mod1 = Mode_switch add Mod2 = Meta_L Meta_R ! add Mod4 = Hyper_L Hyper_R give up on super and hyper ! add Mod5 = Super_L Super_R Fn key and windows last and ! ! next keys produce x event on key release and can't be combined with ! alpha keys, only f1 thru f20 or so ! keycode 66 = Hyper_L ;; Caps lock. keycode 151 Fn key was an attempt ! to assign Super_L to Fn key keycode 66 = backslash bar ! keycode 37 = Super_L keycode 115 = Meta_L keycode 64 = Control_L keycode 113 = Control_R keycode 116 = Meta_R ! keycode 117 = Super_R ;; windows back ! keycode 109 = Hyper_R ;; windows ahead (these two keys straddle the ! up arrow on lower right keycode 51 = Caps_Lock ;; on backslash bar key (under backspace on ! dvorak layout With this .xmodmaprc the Ctl and Alt (Meta) keys are where I want them and caps lock works as backslash bar, but backslash bar doesn't work as Caps_Lock. Not a big deal but why waste the key, and, more important, why not understand what's going on? Ed