From: Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Setting completion-styles
Date: Sat, 07 Dec 2024 13:32:32 +0000 [thread overview]
Message-ID: <YXmqIiYIgHTbAUf56remev8JdSkwWNlZAMNpZ-rAWjDG94fdiuK7xGcpHNK0Rq2BIJvg8H3E8SLWPps0LLnrD-Ipg-5vDlRxCVkAfJ19bD0=@protonmail.com> (raw)
I want to set completion-styles from the set of symbols passed as
arguments in `actn'.
I want to improve upon this code
(defun lentil-launch (&rest actn)
"Launcher for Sentinel feature."
(dolist (action actn)
(pcase action
('basic (setq completion-styles '(basic)))
('substring (setq completion-styles '(basic substring)))
('orderless (setq completion-styles '(orderless)))
('partial (setq completion-styles '(partial-completion)))
('flex (setq completion-styles '(flex)))
('initials (setq completion-styles '(initials)) )) ))
reply other threads:[~2024-12-07 13:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='YXmqIiYIgHTbAUf56remev8JdSkwWNlZAMNpZ-rAWjDG94fdiuK7xGcpHNK0Rq2BIJvg8H3E8SLWPps0LLnrD-Ipg-5vDlRxCVkAfJ19bD0=@protonmail.com' \
--to=help-gnu-emacs@gnu.org \
--cc=heimeborgia@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).