Countless build tools and shell scripts use ANSI escape codes to colorize their
output. This provides impressive improvements to readability when running from a
terminal that supports them, but tends to cause a catastrophic mess anywhere
else. Emacs’ compilation buffer is one such place. It doesn’t support ANSI
colors by default, but that’s very easy to fix.
Emacs already has a library for interpreting ANSI escape. All we need is to hook
it onto compilation-mode.
ANSI-colors in the compilation buffer output
26 Apr 2016, by Artur Malabarba.Countless build tools and shell scripts use ANSI escape codes to colorize their output. This provides impressive improvements to readability when running from a terminal that supports them, but tends to cause a catastrophic mess anywhere else. Emacs’ compilation buffer is one such place. It doesn’t support ANSI colors by default, but that’s very easy to fix.
Emacs already has a library for interpreting ANSI escape. All we need is to hook it onto
compilation-mode
.Tags: compilation, programming, init.el, emacs,
Disable Mouse only inside Emacs »
« Emacs is available on Chromebook and Chrome
Related Posts
Turbo up your Ruby console in Emacs in programming
A few paredit keys that take over the world in programming
Restarting the compilation buffer in comint-mode in compilation
Content © 2019, All rights reserved. Icons under CC3.0.