[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing syntax hi-lite of shell-mode

From: reader
Subject: Re: Changing syntax hi-lite of shell-mode
Date: Mon, 26 May 2008 09:26:02 -0500
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

David Hansen <address@hidden> writes:

> On Sun, 25 May 2008 10:33:25 -0500 address@hidden wrote:
>> David Hansen <address@hidden> writes:
>>> On Sun, 18 May 2008 09:42:15 -0500 address@hidden 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<N>" 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]