diff --git a/.emacs.d/init.el b/.emacs.d/init.el index cda92c9..30eb32b 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -67,6 +67,14 @@ ("C-S-z" . compile)) :config (setq compilation-scroll-output 'first-error) + + (require 'ansi-color) + (add-hook 'compilation-filter-hook + (lambda () + (toggle-read-only 0) + (ansi-color-apply-on-region compilation-filter-start (point)) + (toggle-read-only 1))) + (add-hook 'compilation-start-hook (lambda (x) (setq-local scroll-up-aggressively 0.0))))