reddit / emacs

What is the face name when you drag select or highlight using evil visual mode?

Artistic-Boss-2430 · 2022-03-12 04:45
Hi all. I am customizing a Nord theme. The problem is that the face for `hl-line` kinda looks too much like the face for when you try to select a text using evil visual mode (press V)/. If without evil mode, this same face can also be shown if you just drag select using mouse. This is what I meant on a Nord theme: ​ [Nothing selected, just hl-line highlighting current line](https://preview.redd.it/ylzfwgv9tvm81.png?width=558&format=png&auto=webp&s=d474760f892e196380ef8cfc91b8330bc4e46eaf) ​ [You can barely see the word VISUAL under Visual mode in vim \(pressing V\)](https://preview.redd.it/m5n9frsdtvm81.png?width=422&format=png&auto=webp&s=d722c96aa318a8376a49c0c83e54969c51767055) ​ [Again, here I drag and select the word VISUAL using the mouse. Hard to see](https://preview.redd.it/hx9l9jthtvm81.png?width=637&format=png&auto=webp&s=485cd7532d66e88b1cb9f4621ae4783f4531ee2d) To see things clearly, I use a different light theme: ​ [Normal with only hl-line face color](https://preview.redd.it/07ykuy7ntvm81.png?width=296&format=png&auto=webp&s=e4fa75ae36138e83325434c48c2047a2cb9b0817) ​ [Here you can see both the hl-line and the vim Visual\/drag select very clearly.](https://preview.redd.it/y3su2ojqtvm81.png?width=486&format=png&auto=webp&s=bb6e61ac0d67eb882b969f19ca1c5c42ff72c133) Question: What is that face name, he one you drag select/highlight using evil? I tried to do an `M-x customize` and type "evil" but I got are something like `evil-ex-search` Any input is greatly appreciated.
Danrobi1 · 2022-03-12 07:20
try `describe-face` or `describe-char`.
pwnedary · 2022-03-12 15:54
AFAIK, Evil will use the standard Emacs region mechanism for its visual mode (only painting over in some cases with overlays when the cursor is at the end of line or something like that.) So the face is `region`.
00-11 · 2022-03-12 16:01
It's generally easy to identify faces: * `C-u C-x =` tells you what faces are used at the cursor position. * `M-x list-faces-display` shows you all faces WYSIWYG, and gives you links to their doc and to customizing them. And of course the Emacs manual tells you of that and more: `C-h r i faces RET` opens the [door](https://www.gnu.org/software/emacs/manual/html_node/emacs/Faces.html) for you... *Ask Emacs!*