From 78fa54b72f6c24715ee9aa3e83354502acb3d10e Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 29 Jan 2020 11:28:58 -0500 Subject: [PATCH] Enable color in M-x compile buffers --- emacs/init.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index b4761c0..1e448c4 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -4764,3 +4764,12 @@ A package that bundles together common code beautifying tools for many languages :init (leader-def-key "cf" 'format-all-buffer)) #+END_SRC + +* Compiling +Enable ANSI colors in compile buffers: +#+BEGIN_SRC emacs-lisp + (autoload 'ansi-color-apply-on-region "ansi-color") + (defun colorize-compilation-buffer () + (ansi-color-apply-on-region compilation-filter-start (point-max))) + (add-hook 'compilation-filter-hook #'colorize-compilation-buffer) +#+END_SRC