From: Yuan Luo <yuan.hypnos.luo@gmail.com>
To: Peter Dyballa <Peter_Dyballa@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: customizing dircolors doesn't take effect in emacs shell
Date: Mon, 9 Jan 2012 11:48:21 -0500 [thread overview]
Message-ID: <CAMY509mP_OQhCRq2drK09NdZnSxdkm+AgfMVwDqkEhiJtDbQcA@mail.gmail.com> (raw)
In-Reply-To: <CAMY509k75okqF4LG+KdR9zjGfwCKf+WaQpGimy7EoBX2h3ZGRA@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1873 bytes --]
Sorry forgot attaching picture. Here it is.
Best,
Yuan
On Mon, Jan 9, 2012 at 11:43 AM, Yuan Luo <yuan.hypnos.luo@gmail.com> wrote:
> 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 <Peter_Dyballa@web.de>wrote:
>
>>
>> Am 9.1.2012 um 02:05 schrieb Yuan Luo:
>>
>> > alias l='ls -CF'
>> > alias la='ls -A'
>> > alias ll='ls -alF'
>> > alias ls='ls --color=auto'
>> >
>> > 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..."
>> – Isaac Asimov
>>
>>
>
[-- Attachment #1.2: Type: text/html, Size: 2743 bytes --]
[-- Attachment #2: regular_vs_emacs_shell.png --]
[-- Type: image/png, Size: 45722 bytes --]
next prev parent reply other threads:[~2012-01-09 16:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-07 21:28 customizing dircolors doesn't take effect in emacs shell Yuan Luo
2012-01-08 0:12 ` Peter Dyballa
2012-01-08 0:36 ` Yuan Luo
2012-01-08 10:50 ` Peter Dyballa
2012-01-09 1:05 ` Yuan Luo
2012-01-09 9:53 ` Peter Dyballa
2012-01-09 16:43 ` Yuan Luo
2012-01-09 16:48 ` Yuan Luo [this message]
2012-01-09 20:56 ` Peter Dyballa
2012-01-15 22:34 ` Yuan Luo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMY509mP_OQhCRq2drK09NdZnSxdkm+AgfMVwDqkEhiJtDbQcA@mail.gmail.com \
--to=yuan.hypnos.luo@gmail.com \
--cc=Peter_Dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.