From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Colors for M-x shell Date: Mon, 25 Aug 2014 12:43:33 +0200 Message-ID: <53FB1355.7050305@easy-emacs.de> References: <86y4ug2oox.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1408963479 1171 80.91.229.3 (25 Aug 2014 10:44:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2014 10:44:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 25 12:44:31 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XLrlG-0003Mh-TP for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Aug 2014 12:44:31 +0200 Original-Received: from localhost ([::1]:47280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLrlG-0006fD-Ho for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Aug 2014 06:44:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLrl0-0006eE-P0 for help-gnu-emacs@gnu.org; Mon, 25 Aug 2014 06:44:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLrkv-00022m-1o for help-gnu-emacs@gnu.org; Mon, 25 Aug 2014 06:44:14 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.13]:63845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLrku-00022g-Pj for help-gnu-emacs@gnu.org; Mon, 25 Aug 2014 06:44:09 -0400 Original-Received: from [192.168.178.32] (brln-4d0ca9f7.pool.mediaWays.net [77.12.169.247]) by mrelayeu.kundenserver.de (node=mreue105) with ESMTP (Nemesis) id 0MMnOB-1XFXA13aqF-008cPj; Mon, 25 Aug 2014 12:44:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.7.0 In-Reply-To: <86y4ug2oox.fsf@somewhere.org> X-Provags-ID: V02:K0:dVnX8DzU23181IEnbEFD81PgU6pDi2x2Lb7I7eP8pZp i1o8Q/L4R31N70ET9MEBv3YT6HDh77xCVCiLBHIWuxvbdTIwV9 G9lyD7xO2todDvDyVI/kQv2T5PhubnUzhHFW8fnPbyf5aC8nT3 zgIrMT56ZjVWRpmERzIAYLeoB+uLL7WAr3sWpYa51cUCTC5CYl 3kAv8SiqUnAqxOP9ztb0oUwORM67W2MqUs/sI4JWmHrT0qsSJM KcZxMEa0Z4BI481Si322ZVWu032iWIROLUH9GYweZ9tw2R13ei NWaOT73tD6utSrqjFxAeqeRhFIeF7r2bpiTA6DjR5VVj8fXCoA Mf1Xu5pUQ5SHIOZlFAMuzZUKqRuYLaw5rbL5yQS0w X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.13 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:99399 Archived-At: On 22.08.2014 23:34, Sebastien Vauban wrote: > Hello, > > I'd like to change the color for the directories, executables, etc for > the shell mode. > > Though, I don't see (for example) where the "bold blue2" gets defined > for the directories. > > See http://screencast.com/t/y4hUcRquPec. > > Can you give me a hint? > > Best regards, > Seb > > PS- It'd be great to have just one definition that'd be used for both > Shell mode and the highlighting of the completions (when pressing > `C-x d TAB TAB') when one does have: > > --8<---------------cut here---------------start------------->8--- > ;; provide the same facility of `ls --color' inside Emacs > (autoload 'dircolors "dircolors" nil t) > (add-hook 'completion-list-mode-hook 'dircolors)) > --8<---------------cut here---------------end--------------->8--- > Extending shell-font-lock-keywords, defined in shell.el, should work. Andreas