Enable color in M-x compile buffers

This commit is contained in:
Jeremy Dormitzer 2020-01-29 11:28:58 -05:00
parent 0aa1ce1a10
commit 78fa54b72f

View File

@ -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