3 ms·
Is anybody else addicted to shell mode within emacs? I love having the shell as just another buffer right in the editor. Easy history searchability, copy and p
by babs474 15y ago
Is anybody else addicted to shell mode within emacs?
I love having the shell as just another buffer right in the editor. Easy history searchability, copy and paste between code and various repls or SQL prompts, and all the other full editor features available at the prompt.
- drothlis 15y agoI like the idea, but I'm too used to bash's autocompletion (the Emacs-provided autocompletion is similar but not quite the same), the autocd option, CDPATH, etc. And changing directories in the shell with anything other than cd (pushd, or an alias or script) confuses Emacs's directory completion. The last couple of days I've been trying terminal-mode rather than shell-mode, and it works much better. Many standard Emacs keybindings get remapped though.
- drothlis 15y agoEdit: I meant term-mode (M-x term), not terminal-mode (M-x terminal-emulator). No idea why there are two different terminal emulators in Emacs, but 'M-x term' seems the better of the two, or at least the keybindings make more sense to me. There is also 'M-x serial-term' should you ever need it.
- prakashk 15y agoThere are M-x shell and M-x eshell to run shells within emacs. See http://www.masteringemacs.org/articles/2010/11/01/running-shells-in-emacs-overview/ http://www.masteringemacs.org/articles/2010/11/01/running-sh... for comparison.
- drothlis 15y agoYes. My original comment (the grandparent to your comment) attempted to explain why I prefer term-mode over shell-mode.