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: Re: Dvorak layout except when modifier key is pressed Date: Thu, 27 Dec 2007 21:05:58 -0600 Message-ID: References: <86prwu1zg1.fsf@eder.homelinux.net> <0KudnQIkqchLee7anZ2dnUVZ_tWtnZ2d@sysmatrix.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1198813249 21801 80.91.229.12 (28 Dec 2007 03:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Dec 2007 03:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 28 04:40:59 2007 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 1J865i-0006NH-Oq for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Dec 2007 04:40:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J865N-0003YZ-PI for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Dec 2007 22:40:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 27 Dec 2007 21:06:25 -0600 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 134 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 65.45.140.5 Original-X-Trace: sv3-rAhZdu6pjUrtThokuzfCBZQ0azwqwoT1hmWAdZZGTtYSahvOkFBMcrBwhrd8OAd6E3C3KohXLbcxUWP!QQsafUGpkASRbBdMV/7OQWcwu0SVYiXJ5+hWg27pLKKDccMJDuBOry2Z/cZSmxMsxfowYqvSKHIw!EZXOhKNRp/n3sGhtk6E9S1YUTJGV Original-X-Complaints-To: abuse@sysmatrix.net X-DMCA-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.37 Original-Xref: shelby.stanford.edu gnu.emacs.help:154934 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:50356 Archived-At: Peter Dyballa wrote: > > Am 27.12.2007 um 18:45 schrieb B. T. Raven: > >> Does any of you know what xmodmap expressions I can put in some file >> so that my two users (ec and su or sudo) can have the same keyboard >> with bottom row super, alt, ctl, space, ctl, alt, super, hyper? > > In shell you can 'man xmodmap', in GNU Emacs you have two more choices: > manual-entry and woman. > >> >> Are Mod1 thru Mod5 synonyms for these modifiers keys? More >> importantly, is this system level stuff off topic here? > > > These are the generic symbols. You can make them being this or that or > something else. To change a previous setting (xmodmap -pm), you first > need to "reset" it: > > clear Shift > clear Lock !! I think this is the only one I need to clear if the ones below are already appropriately bound. Right? > clear Control > clear Mod1 > clear Mod2 > clear Mod3 > clear Mod4 > clear Mod5 Thanks for this. I learned more from your response that from a lot of googling and reading man and info pages. > > then ad(d)just: > > add Shift = Shift_L Shift_R ! add Lock = Caps_Lock !! I want this to be Hyper_L . Will this conflict with your Mod4 assignment below? > add Control = Control_L Control_R ! add Mod1 = Mode_switch Mode_switch !! This I don't understand at all. Is it the M$ Menu key? ! add Mod2 = Meta_L Meta_R !! I don't need this since I don't have a Meta key, right? > add Mod3 = Alt_L Alt_R > add Mod4 = Hyper_L Hyper_R > add Mod5 = Super_L Super_R > > Generally you can set the "key bindings" like: > > keycode 0x35 = n N dead_tilde U203A > keycode 66 = Meta_L This keycode method seems like the easiest way to swap keys since I can get the keycodes from xev. Are the above "clear" and "add" lines still needed? In my /etc/X11/Xmodmap file (all commented out) I read: ! keycode and keysym remapping should generally be used only if the X ! server config file has been configured to disable the XKEYBOARD ! extension Where is the server config file? Is this something I have to worry about or can I just add these lines to that file? : clear Lock !. !. maybe other expressions !. add Lock = Hyper_L !! Is that meaningful? keycode 66 = Hyper_L !! is this needed even with the above add Lock expression? keycode 37 = Super_L keycode 115 = Alt_L !! It says Alt on the keycap. keycode 64 = Control_L keycode 113 = Control_R keycode 116 = Alt_R !! Again that's on keycap. Can't I just say alt-is-meta or something somewhere? keycode 117 = Super_R keycode 109 = Hyper_R > > (first line hex value for key code, second example with decimal value) > > First column: no modifier > Second column: with Shift modifier > Third column: with Alt modifier > Fourth column: with Shift and Alt modifiers I read that there can be eight columns but that most apps don't support beyond four. Does Emacs? Could I globalsetkey something to [(shift control alt super hyper h)] ? Of course this would be difficult to touch type unless all keychords that included the shift modifier and at least one other modifier were made sticky. The whole point of this for me is to be able to touch type most keychord combinations. > > The names are defined in /usr/X11/include/X11/keysymdef.h. In Fedora 8 this was in /usr/include/X11/keysymdef.h > > > Multi_key is a nice thing: pressing Multi_key o / could produce ø. Not > sure whether it's still supported ... I want to do all this sort of thing with Emacs (leim) input methods. > > -- > Mit friedvollen Grüßen > > Pete > > Eat the rich – the poor are tough and stringy. Thanks again. If you don't have time to answer this I can probably figure it out with some (a lot) of experimenting but I don't know what's safe and what's dangerous. Ed