all repos — nixfiles @ e6e57579b02658d171295b9224532309c06a2320

System and user configuration, managed by nix and home-manager

Emacs: parse ANSI colour codes in compilation (e.g. tsc) buffers

Alan Pearce
commit

e6e57579b02658d171295b9224532309c06a2320

parent

48dffdc2664f86f486a2c94c1051202af97e2f15

1 file changed, 4 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -610,6 +610,10 @@ '(js-enabled-frameworks '(javascript)))
;;;; typescript (custom-set-variables '(typescript-indent-level 2)) +(autoload 'ansi-color-apply-on-region "ansi-color") +(defun colorise-compilation-buffer () + (ansi-color-apply-on-region compilation-filter-start (point-max))) +(add-hook 'compilation-filter-hook #'colorise-compilation-buffer) ;;;; shell (general-add-hook 'sh-mode-hook