Live data from Hacker News

Things I wish they told you about Emacs

news.ycombinator.com

31–32 of 32 posts

Re: Things I wish they told you about Emacs

#31
post #6

My favorite thing I wish they'd told me about emacs: M-x shell Run a shell (or shells) inside emacs. Great for long running apps like servers. You can search back through the output using normal Emacs search commands. For me, one of the killer features of Emacs. Rename the shell buffer to something else to start another shell.

I found that 'shell' mode occasionally got confused, for instance on what the current directory is. I have changed to 'eshell' as my primary shell emulator, one that implements a number of the basic commands directly in elisp. It works quite well, except when running an interactive command which is does not handle well and there are some issues with piping as well.

Yes, that is irritating though you can run M-x shell-resync-dirs to fix shell when it gets confused.

Generally I like to have bash available so that's why I use shell instead of shell.

Re: Things I wish they told you about Emacs

#32
post #6

My favorite thing I wish they'd told me about emacs: M-x shell Run a shell (or shells) inside emacs. Great for long running apps like servers. You can search back through the output using normal Emacs search commands. For me, one of the killer features of Emacs. Rename the shell buffer to something else to start another shell.

I had a coworker that'd cringe every time I used it because I used that shell instead of one of Emacs's other shell modes.

It all depends on what you're doing in a shell. For me, shell is preferable precisely because it's not a full fledged terminal. Meaning regular emacs commands work with it.
Post reply on HN