[Top][All Lists]

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

RE: How to highlight matches in tab-completion?

From: Drew Adams
Subject: RE: How to highlight matches in tab-completion?
Date: Sat, 31 Jan 2015 18:37:54 -0800 (PST)

> How do I highlight the matched text in the tab-completion buffer?
> For exmaple, when you press C-x b and then tab, you get a list of
> possible matches in a buffer. How do highlight the matched text in each
> suggestion?

You should see a highlight using face `completions-common-part'.
This highlights the longest prefix that matches each candidate,
separately.  It is thus not really a "common-part" match, in
spite of its name.  That is, the text highlighted for each
candidate is not necessarily the same.

You can use `M-x customize-face RET completions-common-part'
to customize the appearance of the face.

You can also customize face `completions-first-difference',
which shows the first character after the common prefix.

If you want to see something closer to highlighting of the
longest common match among all candidates, this is provided
by Icicles.

reply via email to

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