From a7509293647e78949e2780d8359e1b3690682d3b Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Fri, 11 Oct 2024 10:17:28 -0300 Subject: fix compilation mode --- modules/emacs/README.org | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'modules/emacs') diff --git a/modules/emacs/README.org b/modules/emacs/README.org index bca3cc2..f4aafee 100644 --- a/modules/emacs/README.org +++ b/modules/emacs/README.org @@ -217,11 +217,8 @@ Completion popup system ** Compilation Add support for ansi escape codes in compilation #+begin_src emacs-lisp :tangle yes -(use-package xterm-color - :custom (compilation-environment '("TERM=xterm-256color"))) -(defun my/advice-compilation-filter (f proc string) - (funcall f proc (xterm-color-filter string))) -(add-hook 'compilation-filter-hook #'my/advice-compilation-filter) +(use-package ansi-color + :hook (compilation-filter . ansi-color-compilation-filter)) #+end_src ** Pdf reader -- cgit v1.2.3