On Wed, Nov 16, 2016 at 11:02 AM, Kyle Machulis <kmachu...@mozilla.com>
wrote:

> Pass-thru of ANSI color codes for compilation warnings/errors was recently
> added to mach. If emacs users don't have ansi-mode turned on for
> compilation buffers, they'll now see raw ANSI codes, which makes reading
> errors difficult.
>
> To turn on ansi-mode for compilation buffers, add the following code to
> your .emacs:
>
> (ignore-errors
>   (require 'ansi-color)
>   (defun my-colorize-compilation-buffer ()
>     (when (eq major-mode 'compilation-mode)
>       (ansi-color-apply-on-region compilation-filter-start (point-max))))
>   (add-hook 'compilation-filter-hook 'my-colorize-compilation-buffer))
>
> (Code taken from
> http://stackoverflow.com/questions/13397737/ansi-
> coloring-in-compilation-mode
> )
>

Please file any other problems you see with color output against bug
1171610.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to