Hacker News new | past | comments | ask | show | jobs | submit login

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.




I 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.


Edit: 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.


There are M-x shell and M-x eshell to run shells within emacs.

See http://www.masteringemacs.org/articles/2010/11/01/running-sh... for comparison.


Yes. My original comment (the grandparent to your comment) attempted to explain why I prefer term-mode over shell-mode.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: