I designed the emacs pinky case from pressing Cx too much. Ideally, I would like to use the space instead of control as a prefix command, since it is much easier to press and hold the thumb. Pressing and freeing space should still add a space, but pressing Space + x at the same time should be bound to the command. For instance:
(local-set-key (kbd "SPC-s") 'search-forward)
Does anyone have any ideas on how this can be implemented? Is it possible to do this using only elisp or will I need to change the emacs source and compile my own version?
I would prefer an OS independent solution as I use emacs for both Windows and Linux.
EDIT: I tried key-chord.el, which helps in some cases, but not for all (Cx Cs). I would prefer a small mode like hold-space-is-control or hold-space-is-meta p>
EDIT: Thanks for all the feedback. I am currently using key-chord to map many C- * commands to j * or f *, depending on whether * is the left or right key. For example, I replaced Cx b with jb. It works great for all the commands that you usually type once, but not for the commands that you reuse (like forward or backward paragraph). This is the best cross-platform solution since it only requires a custom .emacs and key-chord.el file. I would prefer a solution that requires less reassignment and reduces the risk of entering "fyi" and getting "<yank> i". I believe that using space can work, but I don’t know enough about the technical details of emacs to make it work.
I considered replacing Caps-Lock or Alt with Ctrl, but this only helps for the left little finger. Many common commands are executed using the correct little finger (Cx, Cs, Cw, Cy).
source share