unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Changing syntax hi-lite of shell-mode
@ 2008-05-18 14:42 reader
  2008-05-18 15:47 ` David Hansen
  0 siblings, 1 reply; 5+ messages in thread
From: reader @ 2008-05-18 14:42 UTC (permalink / raw)
  To: help-gnu-emacs

I've forgotten how to go at this... or may never knew. I want to
change the syntax hi-lite I see in shell-mode.

The directories are displayed in a bold blue that is really bad in a
dark background. (I use darkslategrey)

C-u C-x =
Tells me about the text properties including the color:

 There is an overlay here:
  From 2653 to 2659
   face                 ((foreground-color . "blue") bold)
   modification-hooks   (ansi-color-freeze-overlay)

but not the name of the field being colored (so far as syntax term)
I thought there was something useful at the `C-<mouse1>' menu but
apparently not in shell-mode

M-x describe-face
The first line says:
  Face: bold (sample) (customize this face)

The sample is grey and when I use the `customize this face' link I see
it is set to grey60.  But what I see is bold dark blue.  So setting
that customization has no effect on what I see.

Can someone coach me as to how to set the colors seen in shell-mode?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Changing syntax hi-lite of shell-mode
  2008-05-18 14:42 Changing syntax hi-lite of shell-mode reader
@ 2008-05-18 15:47 ` David Hansen
  2008-05-25 15:33   ` reader
  0 siblings, 1 reply; 5+ messages in thread
From: David Hansen @ 2008-05-18 15:47 UTC (permalink / raw)
  To: help-gnu-emacs

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))))





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Changing syntax hi-lite of shell-mode
  2008-05-18 15:47 ` David Hansen
@ 2008-05-25 15:33   ` reader
  2008-05-25 17:44     ` David Hansen
  0 siblings, 1 reply; 5+ messages in thread
From: reader @ 2008-05-25 15:33 UTC (permalink / raw)
  To: help-gnu-emacs

David Hansen <david.hansen@gmx.net> 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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Changing syntax hi-lite of shell-mode
  2008-05-25 15:33   ` reader
@ 2008-05-25 17:44     ` David Hansen
  2008-05-26 14:26       ` reader
  0 siblings, 1 reply; 5+ messages in thread
From: David Hansen @ 2008-05-25 17:44 UTC (permalink / raw)
  To: help-gnu-emacs

On Sun, 25 May 2008 10:33:25 -0500 reader@newsguy.com wrote:

> David Hansen <david.hansen@gmx.net> 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<N>" xterm resources.

David





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Changing syntax hi-lite of shell-mode
  2008-05-25 17:44     ` David Hansen
@ 2008-05-26 14:26       ` reader
  0 siblings, 0 replies; 5+ messages in thread
From: reader @ 2008-05-26 14:26 UTC (permalink / raw)
  To: help-gnu-emacs

David Hansen <david.hansen@gmx.net> writes:

> On Sun, 25 May 2008 10:33:25 -0500 reader@newsguy.com wrote:
>
>> David Hansen <david.hansen@gmx.net> 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<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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-26 14:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-18 14:42 Changing syntax hi-lite of shell-mode reader
2008-05-18 15:47 ` David Hansen
2008-05-25 15:33   ` reader
2008-05-25 17:44     ` David Hansen
2008-05-26 14:26       ` reader

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).