From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: reader@newsguy.com Newsgroups: gmane.emacs.help Subject: Re: Changing syntax hi-lite of shell-mode Date: Mon, 26 May 2008 09:26:02 -0500 Organization: Still searching... Message-ID: <874p8l1af7.fsf@newsguy.com> References: <87y767wu60.fsf@newsguy.com> <87iqxbehrr.fsf@localhorst.mine.nu> <87zlqewg8q.fsf@newsguy.com> <874p8m8ejj.fsf@localhorst.mine.nu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211812058 13200 80.91.229.12 (26 May 2008 14:27:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 May 2008 14:27:38 +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 May 26 16:28:19 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 1K0dgO-00082b-0l for geh-help-gnu-emacs@m.gmane.org; Mon, 26 May 2008 16:28:18 +0200 Original-Received: from localhost ([127.0.0.1]:53199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0dfa-0003Xn-0a for geh-help-gnu-emacs@m.gmane.org; Mon, 26 May 2008 10:27:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K0dem-00039c-H5 for help-gnu-emacs@gnu.org; Mon, 26 May 2008 10:26:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K0deg-00035i-Ta for help-gnu-emacs@gnu.org; Mon, 26 May 2008 10:26:35 -0400 Original-Received: from [199.232.76.173] (port=56294 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0deg-00035V-ER for help-gnu-emacs@gnu.org; Mon, 26 May 2008 10:26:30 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:34043 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 1K0ded-0000aA-VS for help-gnu-emacs@gnu.org; Mon, 26 May 2008 10:26:30 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K0deM-00078V-3Q for help-gnu-emacs@gnu.org; Mon, 26 May 2008 14:26:10 +0000 Original-Received: from c-67-162-73-42.hsd1.il.comcast.net ([67.162.73.42]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 May 2008 14:26:10 +0000 Original-Received: from reader by c-67-162-73-42.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 May 2008 14:26:10 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-67-162-73-42.hsd1.il.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:hfs42gO822ocR62VLykxPdSunrQ= X-detected-kernel: by monty-python.gnu.org: 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:54311 Archived-At: David Hansen writes: > On Sun, 25 May 2008 10:33:25 -0500 reader@newsguy.com wrote: > >> David Hansen writes: >> >>> On Sun, 18 May 2008 09:42:15 -0500 reader@newsguy.com wrote: >>> >>>> Can someone coach me as to how to set the colors seen in shell-mode? >>> >>> This works for me: >>> >>> (eval-after-load 'ansi-color >>> '(progn >>> (setq ansi-color-names-vector ["gray50" "salmon" "palegreen" >>> "lightgoldenrod" "SkyBlue2" >>> "plum3" "turquoise" "white"]) >>> (setq ansi-color-map (ansi-color-make-color-map)))) >> >> >> Thanks, but you post was a little thin on explanation. >> What is supposed to happen if I load that code? >> >> How does this effect what I see in shell-mode? >> >> After loading that code I see no difference whatever in what `ls' >> displays in terms of syntax highlight > > It changes how `ansi-color-for-comint-mode' maps ansi-color codes to > "real" colors. Quite similar to the "color" xterm resources. Sorry about the denseness factor... If I start emacs loading that code with `emacs -l new_code.el then I do see the change... and its a very welcome improvement... now inserted into ~/.emacs. Thanks.