I've recently updated my Emacs from 26 to 27, and now the Flymake error indicators are very hard to see - they're now in a very pale rose instead of crimson red. How can I change the colour back? I've searched the documentation and also looked at the code a little (I'm no Lisp programmer, though), but could not find it. So far, the two affected regions are the margin with the error indicators, and the status bar which also displays the buffer name, editing mode etc.

  • M-x customize-group RET flymake RET and then look for a face which has the colour in question.
    – phils
    Commented Aug 21, 2022 at 3:03

1 Answer 1

  1. Put your cursor on (just before) a character that has the colored text, and use C-u C-x = (command what-cursor-position).

  2. Near the bottom of the *Help* buffer you'll see the name of the face(s) used on that character.

  3. M-x customize-face and enter then name of the face. Customize it to change the foreground or background color etc. Save your customizations.

C-h k C-x = tells us:

C-x = runs the command what-cursor-position (found in global-map), which is an interactive compiled Lisp function in simple.el.

It is bound to C-x =.

(what-cursor-position &optional DETAIL)

Print info on cursor position (on screen and within buffer).

Also describe the character after point, and give its character code in octal, decimal and hex.

For a non-ASCII multibyte character, also give its encoding in the buffer's selected coding system if the coding system encodes the character safely. If the character is encoded into one byte, that code is shown in hex. If the character is encoded into more than one byte, just "..." is shown.

In addition, with prefix argument, show details about that character in *Help* buffer. See also the command describe-char.

You later commented that the chars are displayed in an area (e.g. margin) where you can't put the cursor. In that case, you can try visually matching their face against the faces you see in M-x list-faces-display. That's usually sufficient.

Otherwise, look in the flymake Lisp code to see what faces it defines and what their default appearances are.

  • Thank you, but this suggestion doesn't work: The characters in question are in the margin, or in the status bar, and I can't place the cursor there.
    – user29402
    Commented Mar 27, 2021 at 17:52
  • I see. I don't use flymake. Please put that info about where the chars are displayed in your question (translating to Emacs-speak whatever you mean by "status bar"). Comments can be deleted at any time; questions need to stand on their own.
    – Drew
    Commented Mar 27, 2021 at 20:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.