* Switching orderloss off
@ 2021-06-11 0:47 arvid-harnack
2021-06-11 1:15 ` Doug Davis
2021-06-11 1:20 ` Óscar Fuentes
0 siblings, 2 replies; 5+ messages in thread
From: arvid-harnack @ 2021-06-11 0:47 UTC (permalink / raw)
To: help-gnu-emacs
I am using orderless completion in minibuffer
(require 'orderless)
(setq completion-styles '(orderless))
But I have no clue how to switch it off should I want to.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Switching orderloss off
2021-06-11 0:47 Switching orderloss off arvid-harnack
@ 2021-06-11 1:15 ` Doug Davis
2021-06-11 1:20 ` Óscar Fuentes
1 sibling, 0 replies; 5+ messages in thread
From: Doug Davis @ 2021-06-11 1:15 UTC (permalink / raw)
To: arvid-harnack; +Cc: help-gnu-emacs
arvid-harnack@lavache.com writes:
> I am using orderless completion in minibuffer
>
>
>
> (require 'orderless)
>
> (setq completion-styles '(orderless))
>
>
>
> But I have no clue how to switch it off should I want to.
This is what I have in my init.el to use orderless in the minibuffer
only:
#+begin_src emacs-lisp
(defun dd/use-orderless-in-minibuffer ()
(interactive)
(setq-local completion-styles '(orderless)))
(add-hook 'minibuffer-setup-hook 'dd/use-orderless-in-minibuffer)
#+end_src
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Switching orderloss off
2021-06-11 0:47 Switching orderloss off arvid-harnack
2021-06-11 1:15 ` Doug Davis
@ 2021-06-11 1:20 ` Óscar Fuentes
2021-06-11 1:53 ` arvid-harnack
1 sibling, 1 reply; 5+ messages in thread
From: Óscar Fuentes @ 2021-06-11 1:20 UTC (permalink / raw)
To: arvid-harnack; +Cc: help-gnu-emacs
arvid-harnack@lavache.com writes:
> I am using orderless completion in minibuffer
>
>
>
> (require 'orderless)
>
> (setq completion-styles '(orderless))
>
>
>
> But I have no clue how to switch it off should I want to.
Just set it to something else:
(setq completion-styles '(basic))
In case you wish to restore completion-styles to whatever it was before
the change, just store the previous value:
;; Use orderless completion style:
(setq my-previous-completion-styles completion-styles)
(setq completion-styles '(orderless))
;; Go back to the previous completion styles:
(setq completion-styles my-previous-completion-styles)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Switching orderloss off
2021-06-11 1:20 ` Óscar Fuentes
@ 2021-06-11 1:53 ` arvid-harnack
2021-06-11 9:42 ` Philip Kaludercic
0 siblings, 1 reply; 5+ messages in thread
From: arvid-harnack @ 2021-06-11 1:53 UTC (permalink / raw)
To: Óscar Fuentes; +Cc: help-gnu-emacs
Thank you. Have looked at the various capabilities of "completion-styles" (basic, partial-completion, substring, initials)
Which setup would you find most convenient to use ? Do people customarily fill "completion-styles"
Would it be good to use alternatives rather than a single one ? What sequence would then work nicely?
Thanks
From: Óscar Fuentes <ofv@wanadoo.es>
To: arvid-harnack@lavache.com
Subject: Re: Switching orderloss off
Date: 11/06/2021 03:20:48 Europe/Paris
Cc: help-gnu-emacs@gnu.org
arvid-harnack@lavache.com writes:
> I am using orderless completion in minibuffer
>
>
>
> (require 'orderless)
>
> (setq completion-styles '(orderless))
>
>
>
> But I have no clue how to switch it off should I want to.
Just set it to something else:
(setq completion-styles '(basic))
In case you wish to restore completion-styles to whatever it was before
the change, just store the previous value:
;; Use orderless completion style:
(setq my-previous-completion-styles completion-styles)
(setq completion-styles '(orderless))
;; Go back to the previous completion styles:
(setq completion-styles my-previous-completion-styles)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Switching orderloss off
2021-06-11 1:53 ` arvid-harnack
@ 2021-06-11 9:42 ` Philip Kaludercic
0 siblings, 0 replies; 5+ messages in thread
From: Philip Kaludercic @ 2021-06-11 9:42 UTC (permalink / raw)
To: arvid-harnack; +Cc: Óscar Fuentes, help-gnu-emacs
arvid-harnack@lavache.com writes:
> Which setup would you find most convenient to use ? Do people
> customarily fill "completion-styles"
I cannot speak for most people, but I personally use
'(basic initials partial-completion substring)
meaning it first tries a pretty standard completion, then tries to
expand initials (plp becomes package-list-packages), then tries to
expand parts of symbols (pack-l-pac becomes package-list-packages) and
finally tries inserting anything pac|list, where | is the point, becomes
package-list-packages).
Not sure how this compares to orderless, as I have never serious tries
using it.
--
Philip K.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-06-11 9:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-11 0:47 Switching orderloss off arvid-harnack
2021-06-11 1:15 ` Doug Davis
2021-06-11 1:20 ` Óscar Fuentes
2021-06-11 1:53 ` arvid-harnack
2021-06-11 9:42 ` Philip Kaludercic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).