unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Changing completion-style using the minibuffer
@ 2021-06-11 20:02 arvid-harnack
  2021-06-12  2:49 ` Jean Louis
  0 siblings, 1 reply; 3+ messages in thread
From: arvid-harnack @ 2021-06-11 20:02 UTC (permalink / raw)
  To: help-gnu-emacs

I have the following code to change completion-styles by calling "M-x minibufrp-complt-style".



But would like to change it so that I can go through the four selections using the minibuffer.

What would I need to add exactly to be able to do so ?



(defvar k 1)

(defun minibufrp-complt-style ()
  
  (interactive)
  (pcase k
    (1
       (setq completion-styles '(basic substring))
       (setq k 2))
    (2
       (setq completion-styles '(partial-completion))
       (setq k 3))
    (3
       (setq completion-styles '(initials))
       (setq k 4))
    (4
       (setq completion-styles '(orderless))
       (setq k 1)) ))



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-12 14:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-11 20:02 Changing completion-style using the minibuffer arvid-harnack
2021-06-12  2:49 ` Jean Louis
2021-06-12 14:27   ` arvid-harnack

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).