I’m trying to save space in my mode-line. 99% of the files I edit are in UTF-8 format with Unix line endings (coding system utf-8-unix). I don’t need the ‘U’/‘U:’ indicator in my mode-line in these cases, but I would like it to be there (in a warning face if possible) if I’m editing a file in any other coding system.
How can I hide this in my mode line only if it’s utf-8-unix? (FWIW I’m using smart-mode-line, if that helps.)