Process ansi escape sequences in compilation buffers
This commit is contained in:
parent
ffc5fe6560
commit
50ed29d013
@ -62,7 +62,15 @@
|
||||
:straight (:type built-in)
|
||||
:commands compile
|
||||
:config
|
||||
(evil-collection-compile-setup))
|
||||
(evil-collection-compile-setup)
|
||||
(defun postprocess-compilation-buffer ()
|
||||
(goto-char compilation-filter-start)
|
||||
(when (looking-at "\033c")
|
||||
(delete-region (point-min) (match-end 0)))
|
||||
(ansi-color-apply-on-region (point) (point-max)))
|
||||
(add-hook 'compilation-filter-hook 'postprocess-compilation-buffer))
|
||||
|
||||
|
||||
|
||||
;; Code formatting library
|
||||
(use-package apheleia
|
||||
|
Loading…
Reference in New Issue
Block a user