I try to define a custom coloring of the compilation buffer, but I can not get the highlight correctly.
(add-to-list 'compilation-error-regexp-alist 'my-message)
(add-to-list 'compilation-error-regexp-alist-alist
'(my-message
"^\\(\\(ERRR\\|CRIT\\|ALRT\\|EMRG\\)\\|\\(WARN\\|NTCE\\)\\|\\(INFO\\|DEBG\\)\\) .*\\[\\(\\([^ \n]+\\):\\([0-9]+\\)\\)\\]$"
6 7 nil (3 . 4) 5))
This correctly colors the hyperlink:
But I can not get the beginning of the line right. I would like the tags WARN
, INFO
, NTCE
, DEBG
and ERRR
to have the same color as the hyperlink. But everything I tried did not work. I get either the error, that the match does not exists of the color for all lines is fixed.
How to color the beginning of the line in the same color like the hyperlink?