I am using Emacs+Auctex to write LaTeX code.
When compiling a document that contains an error, Emacs writes
LaTeX errors in ‘*~/doc output*’. Use C-c ` to display.
to the Messages buffer (and displays it below the mode line). I often overlook this and continue to work on an erroneous document.
Is it possible to configure Emacs such that the background color of a LaTeX buffer is changed (e. g., to light red), if a document is compiled that raises an error? And the color changes back when the error is fixed and the document is re-compiled?
Alternatively, are there any other, possibly simpler, ways to highlight LaTeX compile errors more prominently?