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: customizing dircolors doesn't take effect in emacs shell Date: Sat, 7 Jan 2012 16:28:48 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015175cd2a8d5e3ba04b5f6d908 X-Trace: dough.gmane.org 1325971739 24924 80.91.229.12 (7 Jan 2012 21:28:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 Jan 2012 21:28:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 07 22:28:56 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 1Rjdot-0007sC-SM for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jan 2012 22:28:55 +0100 Original-Received: from localhost ([::1]:39770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rjdot-0005aM-C0 for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jan 2012 16:28:55 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rjdoo-0005aD-Fa for help-gnu-emacs@gnu.org; Sat, 07 Jan 2012 16:28:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rjdon-0003ay-H7 for help-gnu-emacs@gnu.org; Sat, 07 Jan 2012 16:28:50 -0500 Original-Received: from mail-bk0-f41.google.com ([209.85.214.41]:40418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rjdon-0003as-7i for help-gnu-emacs@gnu.org; Sat, 07 Jan 2012 16:28:49 -0500 Original-Received: by bkaq10 with SMTP id q10so951046bka.0 for ; Sat, 07 Jan 2012 13:28:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=oUQ6WE2IJe/SDSwh8rljka3F/9vvaDmyV7F17LqgaA4=; b=Bov+BZhdRr/dYdiSbbpPaVoIgSQ7QgljUhCUSWN5hRMdzvTeikalbY5erXlVSXrtVj WXolvKyh+TBx070UrARZku3b2HKKbMGvkK0tF0NK5XgZyFtLrVwPkb/MX1ZstL8KzaZZ LV9RATF60La3Desops7asjyEyrYM2MN06/bZ0= Original-Received: by 10.204.136.195 with SMTP id s3mr4788166bkt.51.1325971728098; Sat, 07 Jan 2012 13:28:48 -0800 (PST) Original-Received: by 10.205.83.135 with HTTP; Sat, 7 Jan 2012 13:28:48 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 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:83403 Archived-At: --0015175cd2a8d5e3ba04b5f6d908 Content-Type: text/plain; charset=ISO-8859-1 Hi, So I have the following setting for dircolors in my ~/.bashrc. With my customized ~/.dircolors file, a regular terminal shows the desired colors upon ls in the shell. However, within the shell of emacs, it still shows the default colors upon ls. This happens in emacs23, what am I missing? if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' fi Thanks, Yuan --0015175cd2a8d5e3ba04b5f6d908 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,
So I have the following setting for dircolors in my ~/.bashrc. With = my customized ~/.dircolors file, a regular terminal shows the desired color= s upon ls in the shell. However, within the shell of emacs, it still shows = the default colors upon ls. This happens in emacs23, what am I missing?

if [ -x /usr/bin/dircolors ]; then
=A0=A0=A0 test -r ~/.dircolors &a= mp;& eval "$(dircolors -b ~/.dircolors)" || eval "$(dirc= olors -b)"
=A0=A0=A0 alias ls=3D'ls --color=3Dauto'
fi
Thanks,
Yuan
--0015175cd2a8d5e3ba04b5f6d908--