2 ms·
Emacs does have modes (even if we set aside vi/vim emulation modes like evil, which is discussed elsewhere in this thread). When you use certain major or minor
by pmoriarty 12y ago
Emacs does have modes (even if we set aside vi/vim emulation modes like evil, which is discussed elsewhere in this thread).
When you use certain major or minor modes in emacs, you get to use a whole new set of keystrokes, by which you're effectively doing modal editing.
One well-known example is magit.[1] When you activate magit, you can type all sorts of new one- or two-key commands. This is comparable to modes in vim.
[1] - http://www.emacswiki.org/emacs/Magit http://www.emacswiki.org/emacs/Magit
- hk__2 12y agoThanks. As a Vim-only user I don’t know all these Emacs things (but am willing to learn).
- sjm 12y agoExactly right! All input in Emacs is just a key-bind. In a buffer focused on text-editing, letter keys (e.g. "a") are actually bound to a function called self-insert-command which inserts the last character typed. Modes like magit just re-bind keys to different functions (e.g. "s" gets bound to magit-stage-item).