PDA

View Full Version : [ubuntu] Bug and Solution - color in Emacs Shells



ceb004
December 20th, 2008, 08:49 PM
I recently upgraded to 8.10 to take advantage of new drivers in the kernel, and noticed that someone had decided to set the default .bashrc to alias ls to 'ls --color=auto' unless the calling terminal was set to 'dumb'.

When installing emacs, and using the shell feature within that application, this leads to ANSI ESC-[ garbage on ls output, unless one also includes
the following in /usr/local/share/emace/site-lisp/default.el:

(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)

It would seem sensible to add this to the package distribution -- I hope that posting this here will get this to the right person.