Enable color in M-x compile buffers
This commit is contained in:
parent
0aa1ce1a10
commit
78fa54b72f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user