2 ms·
Personally I like to bind virtually everything to a sequence of keys starting with a leader key instead of control this alt that coltrol the other thing. Hydra
by michaelmrose 7y ago
Personally I like to bind virtually everything to a sequence of keys starting with a leader key instead of control this alt that coltrol the other thing.
Hydras further provide an attractive discoverable menu to remind you of what options are available.
Major mode hydra let's you define a hydra per mode and pops up the correct one based on the mode you are in.
https://github.com/jerrypnz/major-mode-hydra.el/blob/master/README.md https://github.com/jerrypnz/major-mode-hydra.el/blob/master/...
A useful thing is that it's possible on all major platforms to bind modifier keys like for example shift to produce a different symbol when pressed and released instead of held in combination with another key.
https://gist.github.com/tanyuan/55bca522bf50363ae4573d4bdcf06e2e https://gist.github.com/tanyuan/55bca522bf50363ae4573d4bdcf0...
This means that for example you could use left shift to start global sequences and right shift for mode specific operations preferring short sequences for common operations.
Example
lshift -> b switch buffers
lshift -> f r find recent files
Because these can be bound to unused global keys example f13 if your keyboard lacks such they can be bound globally and work everywhere regardless of mode or with or without evil.
Because of the friendly visual indication see the pictures of major mode hydra even if you don't recall a binding you don't need apropos to find it.
For functionality that you haven't bound fuzzy matching makes it easy to find said functionality and call it in one step.
- pera 7y agoAbo-abo's Emacs packages are truly fantastic. One that I personally love is Ivy-mode (with Counsel and Swiper): https://github.com/abo-abo/swiper https://github.com/abo-abo/swiper
- michaelmrose 7y agoHe is the shit. I have several times independently discovered something nice to discover it was yet another contribution.