help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Background colour of company selection


From: Philip Kaludercic
Subject: Re: Background colour of company selection
Date: Sun, 14 Apr 2024 13:21:30 +0000

Heime <heimeborgia@protonmail.com> writes:

> On Monday, April 15th, 2024 at 12:23 AM, Heime <heimeborgia@protonmail.com> 
> wrote:
>
> On Sunday, April 14th, 2024 at 10:51 PM, Philip Kaludercic philipk@posteo.net 
> wrote:
> 
> > Heime heimeborgia@protonmail.com writes:
> > 
> > > How can I change the background colour of the selection entry when using 
> > > company-mode ?
> > > Currently I am using a dark theme and cannot see what selection I am 
> > > currently on.
> > 
> > You can probably use
> > 
> > M-x customize-apropos-faces company- RET
> > 
> > to get a list of company-related faces, and then identify the one
> > responsible for selection. But this sounds more like a mistake in your
> > theme? - Philip Kaludercic on icterid
> 
> I am using modus-themes
> 
> The one to change seems to be company-tooltip-selection which is currently set
> to :background "gray31". How way I change it in elisp code ?

You can try using `set-face-foreground' and `set-face-background'.

> I could not activate the following change
>
> (defface company-tooltip-selection
>   '((t (:background "blue" :foreground "yellov")))
                                         ^
                                         note the typo
                                         
>   "Face for the selected item in company tooltip.")
>
> Might be that I am changing the wrong face though.  Quite unsure.

I don't use Company, so I cannot say for sure what the right face is.

-- 
        Philip Kaludercic on icterid



reply via email to

[Prev in Thread] Current Thread [Next in Thread]