diff .elisp/settings/99.compilation-ansi-color.el @ 388:c35759aceed4

emacs: add a hook to handle ANSI colors in compilation buffers Some tools just blindly assume they're printing to a color-supporting terminal. Since fixing them is probably impractical, we'll just work around their stupidity.
author Augie Fackler <raf@durin42.com>
date Mon, 01 Feb 2016 17:30:54 -0500
parents
children
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/.elisp/settings/99.compilation-ansi-color.el
@@ -0,0 +1,4 @@
+;;; handle ansi color output in compilation buffer
+(eval-after-load 'compile
+  '(add-hook 'compilation-filter-hook
+        (lambda () (ansi-color-process-output nil))))