[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incrementally display the Emacs command list filtered out by the inp
Re: Incrementally display the Emacs command list filtered out by the input key words in real-time.
Fri, 02 Jul 2021 14:40:58 +0200
mu4e 1.5.13; emacs 28.0.50
Hongyi Zhao <email@example.com> writes:
> I tried the following code snippet posted at
> but there is no effect at all:
Emacs already has a fuzzy completion style (see the `flex' entry in
`completion-styles-alist'), no need to copy&paste some 6 year old
implementation from the internet.
> (add-to-list 'completion-styles-alist
> "Simple naive-fuzzy completion, which never alters the
> string to complete, unless a unique match exists."))
> ;; (setq-local completion-styles '(naive-fuzzy))
Try (setq completion-styles '(flex)). But note that the used
`completion-styles' just defines how the input is matched against the
things to be completed, i.e., you'll see no visual difference. See the
manual at (info "(emacs) Completion Styles").
To have a more visual UI, follow Eli's advice:
>> And maybe try an alternative completion mode, like icompletion-mode.
It is called `icomplete-mode'.
Another very nice UI is the `vertico' package from GNU ELPA. Other
popular choices include ivy, selectrum, etc.