note, of the alternative layouts, such as dvorak, colemak, walkman, norman, those that places the z x c v keys in the same position as qwerty are RSI inducing. I actually personally had RSI experience due to pressing x too much on a rubber dome keyboard. Full story here: The Roadmap to Completely Replace Emacs's Key System, Part 1. See also:
(defun uniq-lines (beg end)
"Unique lines in region.
Called from a program, there are two arguments:
BEG and END (region to sort)."
(narrow-to-region beg end)
(while (not (eobp))
(let ((next-line (point)))
(format"^%s" (regexp-quote (car kill-ring))) nilt)
It requires a text selection, and it also interfere with user's clipboard (emacs's kill-ring).
improve it so that:
If there's a text selection, use that as input, else, use current block of text (separated by 2 empty lines).
Don't use kill-ring.
I'll post a solution in 2 days.
bonus point if you also provide a option to report number of repeats (as in uniq -c)
Hi Xah, the information on your web-site is great! I've learned a lot about keyboards and ended up purchasing a Truly Ergonomic Computer Keyboard because of your review. I'm very happy with it even though I don't type as fast on it as I do with a conventional keyboard yet (I'm getting close), but the matrix arrangement for the keys makes typing all of the non-alphabetic characters needed for programming so much easier and more accurate. Furthermore, it is more comfortable to type on when using emacs (which I started using over 30 years ago).
I've noticed that there is now a real Layout Designer on the TECK website that allows any kind of layout to be loaded into the keyboard's firmware. It looks easy to use and supports 6 layers. The 6 layers are divided into two banks, selected by one of the small switches on the back of the keyboard. Within a bank, there are three possible fully customizable layouts: default, num-lock, and fn. This means that one could support QWERTY, Dvorak, and some extended character layouts all in the keyboard. The little micro-switches on the back of the keyboard aren't convenient, but even with three layouts available though num-lock and fn this greatly increases the keyboard versatility.
I'm going to try some of your keybinding suggestions. I'm not bothered by Emacs pinky, but I would love to have a more logical organization of emac's less common commands normally bound to keys. I really like some of your ideas. Your discussion of different kind of commands (repeated vs non-repeated) was a revelation for me, and I plan on using a menu/prefix key to organize all of my one-time emacs commands as you suggest in “The Roadmap to Completely Replace Emacs's Key System, Part 2”.
the famous jwz (the primary coder of xemacs and unix version of Netscape browser), is gloating about 3DConnexion 3D mouse.
See: 〔Using a 3D mouse with Illustrator and other things By Jamie W Zawinski. @ www.jwz.org…〕