Variable: completion-preview-adapt-background-color
completion-preview-adapt-background-color is a customizable variable
defined in completion-preview.el.gz.
Value
completion-preview
Documentation
Control automatic adaptation of completion preview background color.
This is either a face name or a (possibly empty) list of face names, which Completion Preview mode automatically remaps when showing the preview, such that the background color of the face(s) matches the background color at point.
By default, this option specifies the completion-preview face (which
also affects its descendent faces completion-preview-common and
completion-preview-exact) so the completion preview uses the
background color at point.
This is especially useful when there are other overlays at point that
affect the background color, for example with hl-line-mode(var)/hl-line-mode(fun).
This variable was added, or its default value changed, in Emacs 31.1.
Source Code
;; Defined in /usr/src/emacs/lisp/completion-preview.el.gz
(defcustom completion-preview-adapt-background-color 'completion-preview
"Control automatic adaptation of completion preview background color.
This is either a face name or a (possibly empty) list of face names,
which Completion Preview mode automatically remaps when showing the
preview, such that the background color of the face(s) matches the
background color at point.
By default, this option specifies the `completion-preview' face (which
also affects its descendent faces `completion-preview-common' and
`completion-preview-exact') so the completion preview uses the
background color at point.
This is especially useful when there are other overlays at point that
affect the background color, for example with `hl-line-mode'."
:type '(choice face
(repeat :tag "List of faces" face)
(const :tag "Disable" nil))
:version "31.1")