From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jpw@pobox.com (John Paul Wallington) Newsgroups: gmane.emacs.help Subject: Re: ls lists funky names within M-x shell Date: Sat, 11 Feb 2006 02:10:24 +0000 Message-ID: <8764nm3asv.fsf@thunk.shootybangbang.com> References: <87accy3bou.fsf@thunk.shootybangbang.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139624172 22688 80.91.229.2 (11 Feb 2006 02:16:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 11 Feb 2006 02:16:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 11 03:16:09 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F7kIq-0005IO-4n for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Feb 2006 03:16:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7kIp-0005o9-Bj for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Feb 2006 21:15:59 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.kjsl.com!news-peer-lilac.gradwell.net!not-for-mail Original-Newsgroups: gnu.emacs.help X-Mailer: Norman X-Attribution: JPW X-Face: oX^^1Wzw=7hF+$9sbFF; "@y\k=M:/\KKp>Ix4]Nue{W[-D*|!E&nB]#ZV7!P List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33133 Archived-At: 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)))