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

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

Re: How to select one of the buffers that match a substring in "switch-t


From: Tassilo Horn
Subject: Re: How to select one of the buffers that match a substring in "switch-to-buffer"?
Date: Mon, 08 Jun 2015 20:59:03 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

"KARR, DAVID" <dk068x@att.com> writes:

>> `icomplete-mode' is the official replacement for `iswitchb', AFAIK.
>> 
>> Icicles completion will also give you what you want.  Likewise,
>> `ido-mode'.  Also, in the scenario you described (vanilla `C-x b'),
>> you can type some more chars to continue completing (with TAB).
>
> I already have icomplete enabled.  It's useless if you've typed a
> substring that doesn't represent the start of the file name.

But it should work for buffers, no?

If so, the reason why it doesn't work for file name completion is
because there, emacs doesn't use substring completion.  But you can
configure it to do so.

,----[ C-h v completion-category-overrides RET ]
| completion-category-overrides is a variable defined in ‘minibuffer.el’.
| Its value is nil.
| 
| Documentation:
| List of category-specific user overrides for completion styles.
| Each override has the shape (CATEGORY . ALIST) where ALIST is
| an association list that can specify properties such as:
| - ‘styles’: the list of ‘completion-styles’ to use for that category.
| - ‘cycle’: the ‘completion-cycle-threshold’ to use for that category.
| Categories are symbols such as ‘buffer’ and ‘file’, used when
| completing buffer and file names, respectively.
| This overrides the defaults specified in ‘completion-category-defaults’.
`----

Bye,
Tassilo



reply via email to

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