How to Avoid the Emacs Pinky Problem

http://ergoemacs.org/emacs/emacs_pinky.html

 

How to Avoid the Emacs Pinky Problem

Xah Lee, 2006, …, 2011-06-26

 
 
 

Emacs makes frequent use of the Control key. On a conventional keyboard, the Control Key is at the lower left corner of the keyboard, usually not very large and is pressed by the pinky finger. For those who use emacs all day, this will result in Repetitive Strain Injury (➲ Celebrity Programers with RSI). This page lists some tips on avoiding this pinky problem.

I've been using computer since 1991, at least 8 hours a day on average every singe day. I was a QWERTY touch-typist with 80 wpm and worked as a secretary for about 2 years, then in ≈1994 i switched to Dvorak layout. I started to use emacs everyday since 1998. I am a keyboard and key macro nerd, and have used tens of keyboard macro or keymap type of utilities on the Mac, unixes, and Windows, always looking for the most ergonomic and efficient way to operate the keyboard. (➲ Keyboards, Layouts, Hotkeys, Macros, RSI) This page summarize my experiences applied to emacs.

The best way to avoid the pinky problem is actually to use a good keyboard. Let us start with some tips on choosing a good keyboard.

Tips for Selecting a Computer Keyboard

Here are some keyboard hardware advices:

  • Buy a keyboard such that the Ctrl and Alt keys are large.
  • Buy a keyboard where Ctrl and Alt are also available on the right side.
  • The Ctrl and Alt key's positions on the left and right sides should have the same distance to your left and right thumbs (while your hands are rested in standard touch-type position). Specifically: the distance from the left Alt to the F key should be the same as the right Alt to the J key.
  • Look at the distance from left Alt and F. They should not be far. This lets you easily hit Alt by a thumb curl. Same for Right Alt and J.

BAD

Apple keyboardThe Apple keyboard as of 2006. Note the distance of the right side's modifier keys. It is not possible, to use the right thumb to press the alt key while the index finger remains on the J.

Many keyboards don't have full set of modifier keys on the right side, and when they do, they are positioned far to the right, making them not much usable for touch typing. For example, the keyboards made by Apple Computer, their right-side {⌘ Cmd⌥ Opt/AltCtrl} keys are inferior citizens. They are placed far more to the right, making the right set of modifier keys difficult to reach with the thumb. (➲ Apple Keyboards Review)

GOOD

ms n4000 keyboardThe Microsoft Natural Ergonomic Keyboard 4000. The keys are split and oriented for each hand. The Ctrl and Alt are very large and symmetrically positioned with respect to each hand's thumb. Also, note the distance from F and left Alt. It's almost vertically adjacent. This means you just curl-in your thumb to hold Alt. (➲ Microsoft Natural Ergonomic Keyboard 4000 (review))

Avoid Laptop Keyboards

Laptop computer keyboards are the worst beast. It is the quickest way to get RSI. The keys are packed into a neat little rectangular space and flat. Ctrl and Alt become tiny squares, jammed together with Fn. Many dedicated keys such as HomePage Down, Arrow keys, are reshaped into squares to fit into the rectangular array — losing their distinct positions that can be easily located by touch. Dedicated keypad for numbers is gone. Time saving Function keys, great for macros, become a thin strip and require 2 key presses with a Fn modifier key, also requires visual-contact to hit correctly.

It is neat alright, but anything in perfectly geometric shape is a sign that it is the worst with respect to ergonomics and comfort. In the environment of nature, which our body evolved to cope with, there's almost never any straight lines, squares, or perfect circles.

laptop keyboardLaptop keyboard. img src Sure way to ruin hands. Avoid prolonged typing on laptop keyboards.

Although i sit in front of the computer daily for more than 8 hours a day for the past 20 years, but i never developed any symptoms of RSI except one incidence around 2004. During 2004 and 2005, for 2 years, i was using a laptop always. I noticed RSI symptoms. My hand started to feel weird even when not typing. Nowhere close to pain yet, but definitely something's not right and serious. (I've already read extensively about RSI)

So i went and bought a external keyboard, and actually bought a split ergonomic keyboard (Microsoft Wireless Natural Multimedia keyboard). I always hated split keyboards, in particular because emacs's 【Ctrl+x】 on Dvorak is at the B position of QWERTY, and the B key on split keyboard is on the left side, but i always used the right hand to do the x and left hand on Ctrl. Also, the number 6 key is supposed to be pressed by the right hand by traditional touch typing, but the 6 on split keyboard is on the left side too.

Despite this initial difficulty, i adopted the split ergonomic keyboard, even after 15 years of using a traditional PC keyboard. Now, i won't go back to non-split keyboards. Typing on non-split keyboard feels discomfort even just for a few minutes.

How to Press the Control Key

Use Your Palm or Semi-Fist

Do not use your pinky to press the Control key.

pc keyboardStandard, cheap, functional PC keyboard. The left Ctrl can be easily pressed by palm.

For most PC keyboards, it is very easy to press the control key using your palm. Just open your hand somewhat and push down with the meat at the chopping edge of your hand. Alternatively, you can roll your wrist a bit, curl in your fingers into a semi-fist, then sit your fist on the control key.

palm pressing control keyPalm pressing control key. (Photo by Daniel Arber (aka DMA57361) img src)

Use Both Hands

Do not use just one hand to type a Control+‹key› combo.

Use one hand to press Ctrl, use the other hand to press the letter key. This is the same principle for pressing the Shift key in touch-typing.

When the key you want to press is on the left side of the keyboard, use the right side of Ctrl. For example, to press 【Ctrl+a】, hold down the right Ctrl with your right palm edge, and use your left hand to press “a”. Make this into a habit. Using a single hand to press 【Ctrl+‹key›】 combo means your hand is shaped into spider legs, thus putting stress on it when done repeatedly.

This is also why it is important to chose a keyboard with Control keys positioned on both sides of the keyboard symmetrically.

Software Ways to Avoid the Pinky Problem

A good keyboard and good typing habit is good. But suppose you are stuck with a laptop keyboard. A laptop computer usually don't have Control key on both sides of the keyboard. Its Control key is very small, and it cannot be pressed by palm. Here are some suggestions for this situation.

Swap Control and Alt

Try swapping the Ctrl and Alt keys.

Emacs's shortcuts are developed for Lisp Machine's keyboards of the 1980s. They have Control key near the space bar, and the Meta key further away from the space bar. So, Control key is the primary modifier key. (➲ photo of Lisp Keyboards) However, today's keyboards have Alt instead of Meta, and the Ctrl key is placed at the far corner. Emacs did not change its shortcuts. It simply mapped the Meta to Alt. That is why today, most frequently used keyboard shortcuts have the more difficult to press Control key instead of theAlt. For more detail on this and other aspects of emacs's shortcuts, see: Why Emacs's Keyboard Shortcuts are Painful.

Swapping the Alt and Control key will make Emacs's keyboard shortcuts easier to use.

The other advantage of swapping Alt and Ctrl, is that on Windows and Linuxes, most direct shortcuts involve the Ctrl key. By swapping, shortcuts are made easier too, because now Ctrl is right under your thumb.

Laptop: Swap Caps Lock and Control

Remap the Caps Lock and Ctrl key by swapping them. This is not a optimal solution, because the Control key is still pressed by the pinky. But on laptop, this may be better than swapping Alt and Ctrl, because the Caps Lock key is usually much bigger and in a easy open location. (For detail, see: Why You Should Not Swap {Caps Lock, Control}.)

You can swap Caps Lock or other modifiers on Windows by using AutoHotkey utility. See: AutoHotkey Tutorial. Or, donate few bucks and i'll send you the script i wrote. See: How to Swap Caps Lock, Alt, Control Keys on Windows.

Use a Ergonomic Shortcut Layout

If you are adventurous, the best solution is to use a ergonomically designed shortcut layout for emacs. See: ErgoEmacs Keybinding.

Alternatively, you can use viper mode. With viper mode, the interface becomes vi-like, you don't have to type key combos.

Use Sticky Keys

On {Windows, Mac, Linux}, you can setup your OS so that 【Ctrl+‹key›】 can be pressed by pressing the Ctrl key then release it, then press the ‹key› key. But this makes the operation very slow.

On Windows, go to Control Panel, “Ease of Access Center”, then the Keyboard section. On Mac, go to 〖System Preferences▸Universal Access▸Keyboard tab〗. For Linux, see:emacswiki.org StickyModifiers.

Dvorak Keyboard Layout

One ergonomic improvement is the Dvorak keyboard layout.

dvorak keyboard layout

I've been using Dvorak keyboard since 1994. It works beautifully with emacs. It makes typing more comfortable. (i use emacs since 1997).

Dvorak layout does not help with the emacs pinky problem. However, it is good for typing health in other ways.

For more info about Dvorak layout, see: Dvorak Keyboard Layout.

Relax Your Hand When Not Actually Typing

When in a active coding/writing session, perhaps more than 50% of the time your hands are actually not typing. You constantly take a pause to read or think. This pause can be 1 second to 10 seconds or more. However, for many people, their hands are still tensed up during these times, ready to type.

Remind yourself to check your hands when you are not actually in action of typing or using the mouse. See if your hand is completely relaxed.

It's a good habit to remove your hands from the keyboard or mouse when you are not pressing keys, even if the duration is just few seconds.

Hand Toys

Here's some fun toys i use that give my hands something to do, to take them away from the same muscle usage for typing or mousing. When i'm reading or thinking, it's a habit to pick these toys up and play with it unconsciously.

Quality Putty

crazy aaron puttyCrazy Aaron Thinking Putty. amazon〈Thinking Putty unboxing〉 amazon

Squeeze Ball

squeeze ball IronMindsqueeze ball. amazoneggsercizer squeeze ball Eggsercizer squeeze ball. amazon

Get a squeeze ball. There are several types of squeeze ball. Some are spongy and light weight, requires little effort to squeeze, and spring back into shape immediately. Another type feels like clay; You have to squeeze hard with the whole hand for it to deform, and they deform slowly. I like the clay type better.

Hand Grip

hand grip Captains Of Crushhand grip (choose different strength) amazonhand grip exercise toolhand grip exercise tool amazon

Rubber Band

expand-hand rubber band IronMind amazon

Get a rubber band. amazon Wrap them around all 5 fingers, then try to open the fingers. This is kinda reverse exercise to squeeze balls. With the right size of rubber band, you can easily expand your fingers once every second.

Pen Twirling

You might try to pickup Pen Spinning. (➲ Pen Spinning video) Though, am not sure this is good for you. Learning the tricks can be addictive, and the constant pen dropping can be quite annoying to those around you. (In East Asia, majority of highschool students do some form of pen twirling. When walking into the class, you hear the sound of pen droppings all over.) Personally, pen twirling has become a unconscious habit for me since age 13.

Juggling

classic juggling ballsJuggling sacks. amazon

It is universal advice that you should have AT LEAST 10 minutes of break every 2 hours. The exact schedule varies. I always take breaks. Some people use a alarm clock, but i tend to do it spontaneously. Every 2 hours or so, i'd get up and walk for 10 minutes or do some juggling during break. Been a juggler since age 17. (See many juggling videos at Juggling & Performance Arts.)

Chinese Hand-Exercise Iron Ball

chinese baoding exercise ball2Chinese hand exercise balls. amazon

When taking a walk, i usually carry Chinese hand exercise iron balls. It's good hand exercise especially for us keyboard punchers. (For some beautiful glorious photos, see: Chinese hand-exercise iron balls.)

  • “Chinese Exercise Ball (Stone)” amazon
  • “Chinese Exercise Ball (Metal)” amazon

posted on 2012-08-24 10:05  Orz..  阅读(633)  评论(0编辑  收藏  举报

导航