reddit / emacs

Changing the color of the current Swiper selection in ivy-posframe?

shmulkinator · 2022-02-25 19:29
Does anyone know what variable controls the background color of the current Swiper selection when using `ivy-posframe`? I've tried using `customize-apropos` to find it, but haven't had any luck. In this screenshot, the color I'm talking about is the gray background of the first item in the list of choices: https://preview.redd.it/6p4qkalz51k81.png?width=798&format=png&auto=webp&s=3ef33bf08aea6ae43618188e14d0f98ed043f2c7
Danrobi1 · 2022-02-25 20:21
You could try the function `what-face` from [buildfunthings](https://gitlab.com/buildfunthings/emacs-config/-/blob/master/loader.org) ;; to determine the face at the current point. Since that's in the minibuffer, you'll probably need: - (setq enable-recursive-minibuffers t) ;; Allow another minibuffer command while in the minibuffer Or keybind the `what-face` function. Pretty handy function. Note: If you're using `global-hl-line-mode 1` you'll need to turn it off otherwise `what-face` will always return `Face: hl-line`. New Edit: `M-x describe-face`