[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ls lists funky names within M-x shell
From: |
John Paul Wallington |
Subject: |
Re: ls lists funky names within M-x shell |
Date: |
Sat, 11 Feb 2006 02:10:24 +0000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
jpw@pobox.com (John Paul Wallington) writes:
> If you would rather it only applied to `shell-mode' buffers then you
> could add:
>
> (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
>
> instead.
Actually, that's false. It will delay turning
`ansi-color-for-comint-mode' on for all comint-based modes until
`shell-mode' is run. Instead you could do:
(add-hook 'shell-mode-hook (lambda ()
(make-local-variable 'ansi-color-for-comint-mode)
(ansi-color-for-comint-mode-on)))