17 private links
One way to reduce repetitive-strain injury from Emacs is to avoid pressing two keys simultaneously with the same hand. That is, avoid using modifier keys. For C-KEY, use one hand for KEY and the other for Ctrl. For M-KEY, do similarly as for C-KEY, or press and release Esc and then press KEY. And of course, take advantage of the automatic indenting and other features of Emacs that save keystrokes.
Key chords is the bane of keyboarding.
There are 3 types of keyboard shortcuts to invoke commands in software:
- ① Single key ➢ for example: 【F1】, 【⇞ Page △】.
- ② Key chord ➢ for example: 【Ctrl+c】, 【Ctrl+⇧ Shift+z】, 【Alt+F4】.
- ③ Key sequence of single keys or chords. ➢ for example: on Microsoft Windows, 【F10 e c】 for copy, or 【Alt+Space c】 to close window.
of these, in terms of efficiency and hand health (Repetitive Strain Injury), the single key is the best. Key sequence of single keys is second best. Key chord is the worst.
Key chord is the most hard on hand health, but is also conceptually the most convoluted.
i remember in around 1991, when i first learned about key chord on the Macintosh Classic. I remember thinking, it's strange. You have to hold ⌘ Cmd first, then press the key c, then, release c, then, release ⌘ Cmd. It must be in that specific order.
A more natural way is either key sequence, or real chords. Real chords, meaning, pressing several keys together but you don't have to worry about which to hold or release first. Stenograph machines are like that.
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. This page lists some tips on avoiding this pinky problem.
StumpWM is a tiling, keyboard driven X11 Window Manager written entirely in Common Lisp.
If you're tired of flipping through themes like channel-surfing, and going from one perfect-except-for-just-one-thing window manager to another even-more-broken-in-some-other-way then perhaps StumpWM can help.
StumpWM attempts to be customizable yet visually minimal. There are no window decorations, no icons, and no buttons. It does have various hooks to attach your personal customizations, and variables to tweak.
- Hack the good hack
- Debug your good hack
- Customize your window manager
While it's running That's right. With a 100% Common Lisp window manager there's no stopping the hacks. Just re-eval and GO!
I've got it. There is a utility called xbkeys for setting accessibiltiy options for xorg.
From xbkey manual:
To switch sticky keys on or off, and optionally set or reset:
() two keys pressed at the same time stops sticky keys;
() a modifier pressed twice will be locked:
[-]{sticky|st} [[-]twokey|[-]latchlock]...
I ran this:
$ xkbset sticky -twokey -latchlock
That command can go in .xinitrc
# turn on stickykeys. don't let two keys pressed at the same time disable it.
# don't turn on "latch lock", ie pressing a modifier key twice "locks" it on.
xkbset accessx sticky -twokey -latchlock
# don't expire these settings. (run xkbset q exp for details.)
xkbset exp 1 =accessx =sticky =twokey =latchlock
This page tells you how to setup emacs's whitespace-mode
(in emacs 23 or later), and how to use it.
whitespace-mode
renders {spaces, tabs, newlines} characters with a visible glyph. This feature is useful for working with “tab separated values” (TSV) that's commonly used format for importing/exporting address books or spreadsheets. It's also useful in whitespace-significant languages such as Python.
To use it, call:
whitespace-mode
→ toggle on/off, for current file.global-whitespace-mode
→ toggle on/off globally for current emacs session.
There is also whitespace-newline-mode
and global-whitespace-newline-mode
. They only show newline chars.
NAVIGATION
Back Ctrl + [
Forward Ctrl + ]
Don't make sense on non qwerty keyboards.