Which faces are being applied to the indicated text, i.e. the strings 3114, M-x, and C-x C-c, in the following screenshot?

Minibuffer screenshot

I am using the packages Ivy and Counsel, in case that is relevant.

  • Why did this get downvoted? Apr 21 '18 at 4:39
  • 1
    When we are not dealing with Ivy or Counsel, the normal faces are default and minibuffer-prompt. I do not use either library, so I have no idea whether different faces are being used. You may wish to start with those two faces and see if that does the trick. In terms of people who down-vote without leaving a comment, if it were up to me, I would forbid down-voting without leaving a constructive comment and identifying oneself so the whole world can see who disapproves. But, I'm not in charge -- sometimes, I just leave a comment admonishing people to leave a constructive comment.
    – lawlist
    Apr 21 '18 at 5:21
  • 3
    Probably C-u C-x = (C-u M-x what-cursor-position) give you the answer
    – gigiair
    Apr 21 '18 at 5:39
  • 1
    When asking this sort of question, please specify the keys/commands you invoked as accurately as possible. One would have to be quite familiar with Counsel to guess that they are looking at a counsel-M-x completion session, and even then that is only an educated guess.
    – Basil
    Apr 21 '18 at 23:58

Assuming the minibuffer contents shown are the result of the command counsel-M-x, which is intended as an enhanced version of execute-extended-command, then:

  • 3114 M-x is propertised with the minibuffer-prompt face, as lawlist correctly guessed in a comment.
  • C-x C-c (excluding surrounding parentheses) is propertised with the font-lock-keyword-face face by the function counsel-M-x-transformer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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