From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Colors for M-x shell
Date: Mon, 25 Aug 2014 12:43:33 +0200 [thread overview]
Message-ID: <53FB1355.7050305@easy-emacs.de> (raw)
In-Reply-To: <86y4ug2oox.fsf@somewhere.org>
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
prev parent reply other threads:[~2014-08-25 10:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-22 21:34 Colors for M-x shell Sebastien Vauban
2014-08-22 21:48 ` Emanuel Berg
2014-08-22 22:20 ` Michael Heerdegen
2014-08-22 23:03 ` Michael Heerdegen
[not found] ` <mailman.7415.1408746061.1147.help-gnu-emacs@gnu.org>
2014-08-25 8:01 ` Sebastien Vauban
2014-08-25 10:43 ` Andreas Röhler [this message]
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=53FB1355.7050305@easy-emacs.de \
--to=andreas.roehler@easy-emacs.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.