Some compilers support color output, which I find helpful when viewing compiler output.
GCC for example supports -fdiagnostics-color=always
.
I would like to build using emacs's compile mode which has the advantage of being able to jump to the next/previous error, while seeing any warnings/errors in color.
Is this possible?
ansi-color-apply
can be used instead of depending on thexterm-color
package, and I needed to set(setq compilation-max-output-line-length nil)
otherwise some terminal output would get replaced with[...]
, especially when output was written onto the same line (some build systems do this). – ideasman42 Jul 14 '22 at 14:27