From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: Optimal emacs shell for coding Date: Mon, 11 Aug 2008 06:30:02 -0700 (PDT) Organization: http://groups.google.com Message-ID: <577bf477-6877-4cab-b4c3-fb72b995a095@i20g2000prf.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1218462425 14640 80.91.229.12 (11 Aug 2008 13:47:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2008 13:47:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 11 15:47:56 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KSXkS-0008IM-Es for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Aug 2008 15:47:48 +0200 Original-Received: from localhost ([127.0.0.1]:42907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSXjW-00053T-AL for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Aug 2008 09:46:50 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i20g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 55 Original-NNTP-Posting-Host: 24.6.97.120 Original-X-Trace: posting.google.com 1218461403 18448 127.0.0.1 (11 Aug 2008 13:30:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 11 Aug 2008 13:30:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i20g2000prf.googlegroups.com; posting-host=24.6.97.120; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:161107 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56452 Archived-At: On Aug 11, 4:38 am, Jonathan Groll wrote: > I know of only three ways to get an emacs shell: > > M-x terminal-emulator > M-x shell > M-x eshell > (There is also M-x shell-command RET) > > Question is, which one is best for coding? Lately I've found myself > opening up an xterm session to do miscellaneous coding support tasks - > and am mostly struggling with different readline history keybindings > (eg. I'm used to entering C-r at a shell to get (reverse-i-search) - > obviously in an emacs shell this will have a dfferent outcome to what > I desire! > > Any recommendations? They really all have different purposs. =E2=80=A2 M-x shell-command lets you run a single shell cammand. =E2=80=A2 M-x shell command line interface to OS. =E2=80=A2 M-x terminal-emulator This is actually a terminal emulator. For example, you can start a telnet or ssh or top in it. You can also start a vi, or even emacs itself within. You cannot run these problems with M-x shell, for example. =E2=80=A2 M-x eshell This is just like shell, except it's written in elisp. The purpose is so that you can have access to the familiar unix shell in different OSes such as MS Windows. In general, the shell-command and shell is most useful. Run eshell if you are in Windows and don't have cygwin installed and want to run unix commands such as ls, cd, mkdir, etc. If you need to run telnet, ssh, top, or any program that fills a screen, you'll need to run term. I don't particular recommend it because once in term, many default keybindings of emacs won't work because it pretends to be a term emu. If you want to run ssh etc, best to start in a real term emulator. For more tips, see http://xahlee.org/emacs/emacs_unix.html Xah =E2=88=91 http://xahlee.org/ =E2=98=84