From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: Changing syntax hi-lite of shell-mode Date: Sun, 25 May 2008 19:44:00 +0200 Organization: disorganized Message-ID: <874p8m8ejj.fsf@localhorst.mine.nu> References: <87y767wu60.fsf@newsguy.com> <87iqxbehrr.fsf@localhorst.mine.nu> <87zlqewg8q.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211738042 12311 80.91.229.12 (25 May 2008 17:54:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 May 2008 17:54:02 +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 May 25 19:54:33 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 1K0KQS-0003Sh-Mg for geh-help-gnu-emacs@m.gmane.org; Sun, 25 May 2008 19:54:32 +0200 Original-Received: from localhost ([127.0.0.1]:36834 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0KPh-0002S1-L3 for geh-help-gnu-emacs@m.gmane.org; Sun, 25 May 2008 13:53:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K0KPS-0002P5-4n for help-gnu-emacs@gnu.org; Sun, 25 May 2008 13:53:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K0KPQ-0002N0-K3 for help-gnu-emacs@gnu.org; Sun, 25 May 2008 13:53:29 -0400 Original-Received: from [199.232.76.173] (port=50928 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0KPQ-0002Ms-HJ for help-gnu-emacs@gnu.org; Sun, 25 May 2008 13:53:28 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:56667 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 1K0KPQ-0007yI-9V for help-gnu-emacs@gnu.org; Sun, 25 May 2008 13:53:28 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K0KPL-0004IN-5I for help-gnu-emacs@gnu.org; Sun, 25 May 2008 17:53:23 +0000 Original-Received: from 78.52.48.96 ([78.52.48.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 May 2008 17:53:23 +0000 Original-Received: from david.hansen by 78.52.48.96 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 May 2008 17:53:23 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78.52.48.96 Mail-Copies-To: nobody User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:mcE2jLLlpq++PsZvbfeY0itAdR0= 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:54302 Archived-At: 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. David