[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs keybinding syntaxes bewilderment
From: |
Xah Lee |
Subject: |
Re: emacs keybinding syntaxes bewilderment |
Date: |
Fri, 14 Dec 2007 17:57:10 -0800 (PST) |
User-agent: |
G2/1.0 |
Thanks for the answer about how to make PC keyboard's Windows key as
Hyper.
B. T. Raven wrote:
「
;; 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)
」
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))
「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.」
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-<<key>>
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
\xAD\xF4 http://xahlee.org/
On Dec 14, 3:15 pm, "B. T. Raven" <ni...@nihilo.net> 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
- emacs keybinding syntaxes bewilderment, Xah Lee, 2007/12/15
- Re: emacs keybinding syntaxes bewilderment, B. T. Raven, 2007/12/15
- Re: emacs keybinding syntaxes bewilderment,
Xah Lee <=
- Re: emacs keybinding syntaxes bewilderment, rustom, 2007/12/15
- Re: emacs keybinding syntaxes bewilderment, Mike Mattie, 2007/12/16
- Message not available
- Re: emacs keybinding syntaxes bewilderment, rustom, 2007/12/16
- Re: emacs keybinding syntaxes bewilderment, Harald Hanche-Olsen, 2007/12/16
- Re: emacs keybinding syntaxes bewilderment, rustom, 2007/12/16
- Re: emacs keybinding syntaxes bewilderment, Harald Hanche-Olsen, 2007/12/16
- Re: emacs keybinding syntaxes bewilderment, Peter Dyballa, 2007/12/16
- Re: emacs keybinding syntaxes bewilderment, Lennart Borgman (gmail), 2007/12/16
- Re: emacs keybinding syntaxes bewilderment, Peter Dyballa, 2007/12/16
- Re: emacs keybinding syntaxes bewilderment, Sebastian Tennant, 2007/12/17