From 6c55b50071e5537e87dda29bd1cd3ed813400d65 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 7 Nov 2024 12:33:23 -0500 Subject: [PATCH] Use fancy-compilation instead of manual settings --- .emacs.d/init.el | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 86bc41f..25eade7 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -99,19 +99,7 @@ (use-package compile :commands (compile recompile) :bind (("C-z" . recompile) - ("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)))) + ("C-S-z" . compile))) (use-package verilog-mode :config @@ -1167,6 +1155,11 @@ (setf (car (alist-get 'isort apheleia-formatters)) '(pet-executable-find "isort")))) +(use-package fancy-compilation :demand :if (package-installed-p 'fancy-compilation) + :config (fancy-compilation-mode) + :custom + (fancy-compilation-override-colors nil)) + ;;; Local Variables (add-to-list 'safe-local-eval-forms '(outline-hide-body)) ;; Local Variables: