From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: emacs keybinding syntaxes bewilderment Date: Fri, 14 Dec 2007 17:57:10 -0800 (PST) Organization: http://groups.google.com Message-ID: <18a63926-ca59-45e3-b8e8-d697a7628ace@a35g2000prf.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1197769375 22487 80.91.229.12 (16 Dec 2007 01:42:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2007 01:42:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 16 02:43:06 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 1J3iX3-0005O4-7o for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Dec 2007 02:43:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J3iWs-0005Pq-HX for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Dec 2007 20:42:54 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!a35g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help, comp.emacs Original-Lines: 84 Original-NNTP-Posting-Host: 69.236.84.103 Original-X-Trace: posting.google.com 1197683830 28265 127.0.0.1 (15 Dec 2007 01:57:10 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 15 Dec 2007 01:57:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a35g2000prf.googlegroups.com; posting-host=69.236.84.103; posting-account=qPxGtQkAAADb6PWdLGiWVucht1ZDR6fn User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/523.12 (KHTML, like Gecko) Version/3.0.4 Safari/523.12, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:154666 comp.emacs:95958 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:50094 Archived-At: Thanks for the answer about how to make PC keyboard's Windows key as Hyper. B. T. Raven wrote: $B!V(B ;; Single char cursor movement on Dvorak layout (global-set-key [(meta h)] 'backward-char) (global-set-key [(meta n)] 'forward-char) (global-set-key [(meta c)] 'previous-line) (global-set-key [(meta t)] 'next-line) $B!W(B Great. I did exactly the same, starting in about 1992 across Mac using the QuicKeys utility, then with pure emacs since i stopped using QuicKeys in about 2002. (Mac OS X does have a system-wide scheme to rebind keys, see http://xahlee.org/emacs/osx_keybinding.html however, the problem is that it's not really universal, since many apps not using Cocoa Text System will not respect it. (this includes some major apps such as Finder, FireFox, Opera, TextWrangler... so practically making it far less useful)) $B!V(BWhat I really want is for those first four bindings to be used with the Ctrl modifier rather than Meta, but the C-h and C-c prefixes preclude that possibility.$B!W(B Yeah, i understand exactly: you wanted the modifier keys for cursor movements to be the one immediate neighbor to the space bar, so the thumb can press it readily. I did a fairly extensive remapping here http://xahlee.org/emacs/ergonomic_emacs_keybinding.html I didn't swap Control and Meta, instead, i considered the Meta-<> space free and placed all major cursor moving and editing functions to it. My current .emacs for keybinding are these: http://xahlee.org/emacs/xah_emacs_kbd_shortcuts.el http://xahlee.org/emacs/ergonomic_keybinding_dvorak.el http://xahlee.org/emacs/xah_emacs_unicode_input.el Xah xah@xahlee.org $B-t(B http://xahlee.org/ On Dec 14, 3:15 pm, "B. T. Raven" wrote: > Yes. I have the following in my .emacs: > > (setq w32-pass-lwindow-to-system nil > w32-pass-rwindow-to-system nil > w32-pass-apps-to-system nil > w32-lwindow-modifier 'super ;; Left Windows > w32-rwindow-modifier 'super ;; Right Windows > w32-apps-modifier 'hyper) ;; App-Menu (key to right of Right > Windows) > > In addition I have used Keytweak (on w2000 or better (later, > whatever)changes registry scancode interpretations) to make the order of the > modifiers in bottom row super alt control spacebar control alt super hyper. > For this to work you need a keyboard where all the modifier keycaps can be > swapped around. Since I used the Dvorak layout, even with these hacks, the > best I can do to be able to touch type keychords and get any ergonomic > effect is to redefine these keys: > > ;; Single char cursor movement on Dvorak layout > (global-set-key [(meta h)] 'backward-char) > (global-set-key [(meta n)] 'forward-char) > (global-set-key [(meta c)] 'previous-line) > (global-set-key [(meta t)] 'next-line) > > ;;substitute for stolen metakeychords > (global-set-key [(control p)] 'mark-paragraph) > (global-set-key [(control b)] 'capitalize-word) > (global-set-key [(control f)] 'find-function-at-point) > (global-set-key [(shift control f)] 'find-variable-at-point) > > What I really want is for those first four bindings to be used with the Ctrl > modifier rather than Meta, but the C-h and C-c prefixes preclude that > possibility. > > Ed