I installed flycheck (I usually used flymakes) as well as different other packages associated to it. One of them is flycheck-color-line-mode which change the color of the mode-line according to the level of error catched by flycheck.
However it was only focusing one buffer. If I had 2 buffer opened, even of the same file, the not active one was of normal color.
I looked on the github and tried to change a few variables without any impact, leading me to directly modify the source file (without realizing I need to byte-compile it to make the change valid).
I tried to modify the
flycheck-color-mode-line-reset function as well as to play with the
flycheck-color-mode-line-cookie and the remapping but I didn't get the result I wanted (I was able to fix the color forever, but it kept changing when switching buffer).
It let me to believe that the flycheck-color-line-mode is not the problem but rather emacs, which apparently reset the color. Maybe due to another mode editing the mode-line but I would like to know :
- Is this a normal emacs behaviour?
- If it's a normal emacs behaviour, can I change it?
- If no, it's probably the flycheck-color-line-mode and as I didn't found how to change it by myself, how can I change it?