From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuan Luo Newsgroups: gmane.emacs.help Subject: Re: customizing dircolors doesn't take effect in emacs shell Date: Mon, 9 Jan 2012 11:43:28 -0500 Message-ID: References: <3CD4DC10-DEDB-4DB7-ADEB-38166A9E88C0@web.de> <9358B31E-D0DF-478E-A0BF-3B7721A43F81@web.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015175cd2a81aaede04b61b19da X-Trace: dough.gmane.org 1326127435 13828 80.91.229.12 (9 Jan 2012 16:43:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Jan 2012 16:43:55 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 09 17:43:50 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RkIK2-0004nM-5E for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jan 2012 17:43:49 +0100 Original-Received: from localhost ([::1]:49741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkIK1-00015w-Pw for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jan 2012 11:43:45 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkIJn-0000vg-7y for help-gnu-emacs@gnu.org; Mon, 09 Jan 2012 11:43:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkIJl-00016p-Vn for help-gnu-emacs@gnu.org; Mon, 09 Jan 2012 11:43:31 -0500 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:34572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkIJl-00016V-Ex for help-gnu-emacs@gnu.org; Mon, 09 Jan 2012 11:43:29 -0500 Original-Received: by eabm6 with SMTP id m6so2572154eab.0 for ; Mon, 09 Jan 2012 08:43:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=n8iOw8RtUamZP7syve+J+1Fq3zLyZXw5aDsNvEgvKic=; b=SvIcQL4bmP6gFkjIIlHeHS/eaonF/gEb2DPYg3/vNxxRdq9hSXoA8GJyhsqbp2WkFY RFHNJqEyU3knY68XTiKCT4H4yLlr13rgx4G+3QBRMwdDh3JdSDlkX/GnNJZ9GjmoSNnf 9RtnP9zRuDfMewduGzEVV4/P4tkpG42tsPJjk= Original-Received: by 10.204.136.195 with SMTP id s3mr7508259bkt.51.1326127408393; Mon, 09 Jan 2012 08:43:28 -0800 (PST) Original-Received: by 10.205.83.135 with HTTP; Mon, 9 Jan 2012 08:43:28 -0800 (PST) In-Reply-To: <9358B31E-D0DF-478E-A0BF-3B7721A43F81@web.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83426 Archived-At: --0015175cd2a81aaede04b61b19da Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable All aliases in ~/.bashrc are listed in emacs shells. I already had have ansi-color-for-comint-mode-on set. execution of ls traces to /bin/ls Maybe i was not clear in the beginning, the emacs shell can show colors, but not to my customization, for example, I customized it to show executables in purple, it still show them in red. While a regular terminal shows the desirable purple color for executables (as in below, left is regular terminal, right is emacs shell). On Mon, Jan 9, 2012 at 4:53 AM, Peter Dyballa wrote: > > Am 9.1.2012 um 02:05 schrieb Yuan Luo: > > > alias l=3D'ls -CF' > > alias la=3D'ls -A' > > alias ll=3D'ls -alF' > > alias ls=3D'ls --color=3Dauto' > > > > Anything noticeable? > > IMO it's not recommended to use the same symbol, "ls", left and right of > the equals sign. I recommend to use the full pathname of the ls programme > when this programme is meant. > > Are all aliases from ~/.bashrc listed inside GNU Emacs? > > Can you trace the execution of the ls alias? > > Have you tried to use the more ANSI compliant "term" function/emulation? > > It can be that you need to set up the *shell* buffer to actually show > colours (*term* has it activated by default, by its more complete > compliance to ANSI): > > (add-hook 'shell-mode-hook (lambda () > (ansi-color-for-comint-mode-on))) > > Check your GNU Emacs documentation on this topic! > > -- > Greetings > > Pete > > The most exciting phrase to hear in science, the one that heralds new > discoveries, is not "Eureka!" (I found it!) but "That's funny..." > =96 Isaac Asimov > > --0015175cd2a81aaede04b61b19da Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable All aliases in ~/.bashrc are listed in emacs shells.
I already had have = ansi-color-for-comint-mode-on set.
execution of ls traces to /bin/ls
=
Maybe i was not clear in the beginning, the emacs shell can show colors= , but not to my customization, for example, I customized it to show executa= bles in purple, it still show them in red. While a regular terminal shows t= he desirable purple color for executables (as in below, left is regular ter= minal, right is emacs shell). 3D""

On Mon, Jan 9, 2012 at 4:53 AM, Peter Dyball= a <Peter_Dybal= la@web.de> wrote:

Am 9.1.2012 um 02:05 schrieb Yuan Luo:

> alias l=3D'ls -CF'
> alias la=3D'ls -A'
> alias ll=3D'ls -alF'
> alias ls=3D'ls --color=3Dauto'
>
> Anything noticeable?

IMO it's not recommended to use the same symbol, "ls", = left and right of the equals sign. I recommend to use the full pathname of = the ls programme when this programme is meant.

Are all aliases from ~/.bashrc listed inside GNU Emacs?

Can you trace the execution of the ls alias?

Have you tried to use the more ANSI compliant "term" function/emu= lation?

It can be that you need to set up the *shell* buffer to actually show colou= rs (*term* has it activated by default, by its more complete compliance to = ANSI):

=A0 =A0(add-hook 'shell-mode-hook (lambda ()
=A0 =A0 =A0 =A0(ansi-color-for-comint-mode-on)))

Check your GNU Emacs documentation on this topic!

--
Greetings

=A0Pete

The most exciting phrase to hear in science, the one that heralds new disco= veries, is not "Eureka!" (I found it!) but "That's funny= ..."
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=96 Isaac A= simov


--0015175cd2a81aaede04b61b19da--