3 ms·
I've been using Evil-mode a bit on and off since I came to Emacs (from Vim), right now I'm in a "vanilla phase" again. But I tried re-enabling Evil-mode and Evi
by setopt 2y ago
I've been using Evil-mode a bit on and off since I came to Emacs (from Vim), right now I'm in a "vanilla phase" again. But I tried re-enabling Evil-mode and Evil Collection now to test what you mentioned (in a vanilla config not Doom) and found that:
- `z` triggers stash in magit even with evil collection on, so `C-h m`
was correct there. As you said, perhaps it changed at some point,
since `evil-magit` used to be its own package but then got assimilated
into Evil Collection if I recall correctly.
- But your general point stands: If I look up e.g. `j`, then it first shows me
`magit-status-jump` and I have to scroll down to see that it is
overridden by `evil-next-line` in `<normal-state>`. In that sense, I
think perhaps `C-h b` is more useful, since it lists all defined
keybindings in order of precedence, and thus correctly lists the
Evil keybinding further up than the Magit keybinding in this case.
As for it being more useful to say `describe-mode` and
`describe-bindings` than `C-h m` and `C-h b`, I generally agree. That
was quite annoying using Evil myself. On the other hand, I usually
write HN comments from my iPhone without Emacs installed, and I tend
to remember keybindings and not underlying functions for the most
common operations, so it's just easier to type `C-h m` than to go back
to my desk to check `C-h k C-h m` first ;). If you want to check what function a default keybinding runs, you can use `C-z` to toggle Evil off temporarily and then use `C-h k`.