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
)