by neilv · 2y ago · 0 comments
BTW, this isn't only a problem with `isearch`. I suspect that other multiple-simultaneous-keypresses tend to be hard on most people's hands. Which can be bad for your typing-oriented career, and for other humans uses of hands.
Some alternatives in Emacs:
* Try to press the modifier key(s) with one hand, and the non-modifier key with the other.
* If the modifier(s) require contorting in uncomfortable ways, consider whether moving from home row is easier.
* When an Emacs key sequence includes the "Meta" modifier (`M-`), consider whether pressing and releasing the Esc key first, and then doing the remaining key/combo, is easier.
* Make a better key binding. Examples:
(global-set-key [f5] 'call-last-kbd-macro)
(global-set-key [f12] 'undo)
(global-set-key [XF86Back] '(lambda ()
(interactive)
(other-window -1)))
* Learn fancier Emacs features which might mean not having to type this or not as often (keyboard macros is just one).* Use or write a function or package that automates the higher-level task. For writing your own, you can learn from one of these two manuals, and just start experimenting in your running Emacs: https://www.gnu.org/software/emacs/manual/html_node/eintr/ https://www.gnu.org/software/emacs/manual/html_node/elisp/
[1] https://github.com/emacsorphanage/god-mode [2] https://discourse.doomemacs.org/t/what-are-leader-and-locall...
This is the biggest problem I see with most people’s typing: they always want to press the whole key sequence with one hand, then they complain that it hurts! :)
Maybe not enough people took a typing class in school.
I swear I had to read that twice to stop seeing "alternatives to Emacs". I'll see myself out now.
(Doom Emacs is really nice though, and modal editing does help with key bindings, just as a sibling comment points out.)