From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Emacs Shell Ansi Colors Date: Sun, 28 Sep 2008 23:19:54 +0200 Message-ID: <87prmo3r45.fsf@tux.homenetwork> References: <48DFDAB9.5020506@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222637461 26576 80.91.229.12 (28 Sep 2008 21:31:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2008 21:31:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 28 23:31:59 2008 connect(): Connection refused 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 1Kk3rx-0000cu-HP for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Sep 2008 23:31:58 +0200 Original-Received: from localhost ([127.0.0.1]:47024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kk3qu-0004n5-5J for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Sep 2008 17:30:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kk3qH-0004Rm-TL for help-gnu-emacs@gnu.org; Sun, 28 Sep 2008 17:30:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kk3qF-0004OP-KN for help-gnu-emacs@gnu.org; Sun, 28 Sep 2008 17:30:12 -0400 Original-Received: from [199.232.76.173] (port=33338 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kk3qF-0004O7-DN for help-gnu-emacs@gnu.org; Sun, 28 Sep 2008 17:30:11 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:41314 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kk3qD-0001Ru-RV for help-gnu-emacs@gnu.org; Sun, 28 Sep 2008 17:30:11 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Kk3q7-0006lR-7C for help-gnu-emacs@gnu.org; Sun, 28 Sep 2008 21:30:03 +0000 Original-Received: from 9.77.197-77.rev.gaoland.net ([77.197.77.9]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Sep 2008 21:30:03 +0000 Original-Received: from thierry.volpiatto by 9.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Sep 2008 21:30:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 9.77.197-77.rev.gaoland.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:QTarY0VDey01VeRKvjDT6jd7SY0= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:58170 Archived-At: Hi Lorenzo, Lorenzo Isella writes: > Dear All, > I often use M-x shell to open a shell within Emacs. Since I miss the > colorized output, I tried to enable ansi-colors in my Emacs shell. > After googling, I found suggestions along the lines of the link pasted > below > > http://www.grokblok.com/articles/2007/12/13/emacs-shell-ansi-colors/ > > The problem is that I added those few lines to my .emacs file, but > nothing changed. > I had a look also at: > http://www.emacswiki.org/cgi-bin/wiki/ansi-color.el > but I did not copy the ansi-color.el file anywhere in my system (in > case it matters, I am running emacs22 on a Debian testing box). > I notice that issuing the command (within emacs shell): > ls --color=yes > give the nice colorized output I am looking for, hence I do not think > there is any substantial problem by default, just it seems that my > output is not colorized by default (though when I type M-x shell I > read the message > Loading ansi-color...done ). > Can anyone help me out with this? > Many thanks Try that in your .emacs: ,---- | (autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t) | (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) `---- -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France