3 ms·
The benefit of Emacs's keybindings is that they're the default keys used by GNU readline (though it also supports Vi-style keys.) That means when you know that
by mickeyp 7y ago
The benefit of Emacs's keybindings is that they're the default keys used by GNU readline (though it also supports Vi-style keys.)
That means when you know that Ctrl+E and Ctrl+A (`C-e' / `C-a') goes to the end or beginnings of a line in Emacs, you know it'll also work in your bash shell (or indeed any tool that uses GNU readline.)
- GrayShade 7y agoThat's what I'm using while coding, but it's not friendly to all software (e.g. browsers or other programs that don't have configurable keyboard shortcuts).
- waterhouse 7y agoThis is one of the things I like about Mac OS: text fields, by default, have the readline keybindings. In the box where I'm typing this comment in Firefox, I can use control-{a,e,n,p,f,b,d,h,k} just like I can in the shell. This is one of the reasons I haven't tried harder to use a Linux desktop.