"If we wish to count lines of code, we should not regard them
as lines produced but as lines spent."
-- Edsger Dijkstra
|
Comments? You can tell
me what you think or send me things through: |
Keyboard layout for the typing modeThe work I've done so far on improving the typing mode is described below. I haven't done much on other modes because for a long time I ignored their importance (they are still less important for me than the typing mode but clearly need some work). I decided to use the Dvorak layout because it is more convenient for typing than the standard qwerty layout. However, this is not important; all modifications can be used with qwerty as well as with Dvorak. It's important to emphasize that the layouts presented in below and the key bindings are by no means final and I change them occasionally. ObservationsThe traditional keyboard layout has the following flaws:
Modifications
Modifiers
LayoutsThe layouts shown below have been (slightly) optimized so that frequently used combinations (such as '()', '<=', or 'beginning-of-line + set-mark + line-down + yank') are easy to input. In particular, they only require pressing one modifier.The modifier currently in effect is marked red. The keys which I use rarely and will probably change in the future are marked grey.
Key bindingsI had to change some (emacs) key bindings. I tried to apply the following rules:
Global key bindingsHaving to set up key bindings for different applications separately is frustrating. There are two possible solutions to this problem: have all application use the same input libraries or have all applications use the same key bindings aka "generic keys". The idea is that instead of sending an event "Alt-A" directly to an application, it first passes though a small programs that looks it up in its configuration table and changes it to "beginning-of-line". Then this event ("beginning-of-line") is sent to the application, which doesn't care what keystroke was really pressed. This makes global key binding configuration much easier. Tell me if you know any program that does this.Configuration files for the typing modeI am using the following configuration files at the moment (bear in mind that I am using a UK keyboard with a short left shift key and an additional backslash key to the right to it (code 94)). I do not guarantee anything to work, these files should be considered a snapshot of my current configuration rather than anything portable.
|
My blog posts
My bookmarks
Upcoming talks
More talks |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||