Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom face for in-buffer message #99

Closed
haji-ali opened this issue Aug 13, 2021 · 3 comments
Closed

Custom face for in-buffer message #99

haji-ali opened this issue Aug 13, 2021 · 3 comments

Comments

@haji-ali
Copy link
Contributor

I noticed that there is no way to change the face (especially the background) of the in-buffer message. Having it the same face as the mini-prompt makes it get lost in my text most of the time (most faces already use mini-prompt colors to highlight keywords).

I tried changing the face in ctrlf--message but the background get overridden by ctrlf-highlight-active I think.
Is there an easy way to implement this?

@raxod502
Copy link
Member

Hmm. By in-buffer message, you mean the match count, shown in blue here?

image

I see what you mean, it looks like both the display of that text and the display of minibuffer messages are controlled by the minibuffer-prompt face. It would make sense to add new faces for this, e.g.

  • ctrlf-message-face (inherits from minibuffer-prompt by default) -- factored out in case we later add other places to display messages than the two we have at present
  • ctrlf-minibuffer-message-face (inherits from ctrlf-message-face by default) -- used by ctrlf--message always
  • ctrlf-in-buffer-message-face (inherits from ctrlf-message-face by default) -- used by ctrlf--message when ctrlf--message-in-buffer-p is non-nil

But regarding your issue with the background specifically, you hypothesized that it was being interfered with by ctrlf-highlight-active, but you probably want to be looking at ctrlf-highlight-line instead.

@cburroughs
Copy link

Hmm. By in-buffer message, you mean the match count, shown in blue here?

I'd specifically like to control the face of the match count (`[10/41]' in the screenshot above).

@raxod502
Copy link
Member

You can now do this by customizing ctrlf-in-buffer-message-face.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants