ShannonMax: A Library to Optimize Emacs Keybindings with Information Theory
64 points by sammy0910 13 hours ago | 17 comments
snikeris 4 hours ago
This is cool.
replyWhile we're discussing optimizing emacs keybindings...I've found it key to have my bindings set up such that my thumbs operate the control modifier key.
kleiba 4 hours ago
I'm fine with the standard CAPS_LOCK is CTRL setup...
replysetopt 2 hours ago
I got a pretty bad case of RSI with that setup, since it encourages one-handed chording (e.g. pressing C-x C-s by holding down your pinkie on Caps Lock while twisting your wrist to tap X then S using other fingers on the same hand). It’s far more ergonomic to do two-handed chording, where you press one key at a time with each hand to the extent possible. For me, that meant using Karabiner Element (Mac) and Keyd (Linux) to map Return to another Ctrl key when held down (in addition to the Caps as Ctrl mapping). Then I can simply hold down Return with my right hand and tap X then S with whatever fingers feel natural on the left hand, without twisting my wrist at all.
replylorenzohess 11 hours ago
This looks great. Would there be an easy way to generalize this program to tiling window managers? Maybe initially I can use this by modifying the WM to forward all its keybindings to a dummy Emacs instance. For WMs is the entropy theory also applicable?
replyoritron 8 hours ago
Some people use Emacs /as a tiling window manager/ :) https://github.com/emacs-exwm/exwm
reply
Yes, VSCode has something similar, I believe. But Emacs had it before VSCode existed ;-)
I did not get IDEmacs ( https://codeberg.org/IDEmacs/IDEmacs ) to work but it basically it's an editor I would use.
For now fresh ( https://github.com/sinelaw/fresh/tree/master ) seems to be very promising.
Anyway I traded very happily the command palette Ctrl-Shift-P in Sublime for M-x and few other cool things.
Emacs will always have all my respect because of the concepts it introduced.