From 323dbdd16ae4ed6f0404d37d734ec022694a1221 Mon Sep 17 00:00:00 2001 From: shoshin Date: Thu, 6 Apr 2023 19:09:40 -0500 Subject: Add: orderless and Fix: broken tangle --- shoshimacs.org | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) (limited to 'shoshimacs.org') diff --git a/shoshimacs.org b/shoshimacs.org index 4402338..b030321 100644 --- a/shoshimacs.org +++ b/shoshimacs.org @@ -417,12 +417,32 @@ all the styles you'd like to use. It starts at the front, and if no matches are found, moves to the next style of completion. In this config, I just added =flex= to the front of the default completion styles. +*** COMMENT Built-in + #+begin_src emacs-lisp - (setq completion-styles '(flex basic partial-completion emacs22) - completion-cycle-threshold 3 - tab-always-indent 'complete) + (setq completion-styles '(flex basic partial-completion emacs22)) #+end_src +*** Orderless + +[[info:orderless#Top][Orderless Manual]] + +#+begin_quote +This package provides an ‘orderless’ _completion style_ that divides the +pattern into space-separated components, and matches candidates that +match all of the components in any order. Each component can match in +any one of several ways: literally, as a regexp, as an initialism, in +the flex style, or as multiple word prefixes. By default, regexp and +literal matches are enabled. +#+end_quote + +#+begin_src emacs-lisp + (setq completion-styles '(orderless basic) + completion-category-overrides '((file (styles basic partial-completion)))) +#+end_src + +*** Additional config + ~completion-cycle-threshold~ defines when you want to just cycle through alternatives on each (or whatever key you use) rather than presenting options. Setting it to 3 means if my options are "FOO, FOP, FOR" or less, @@ -435,6 +455,11 @@ hitting complete will change FOO->FOP, FOP->FOR, FOR->FOO. was already indented, then try to complete the thing at point. #+end_quote +#+begin_src emacs-lisp + (setq completion-cycle-threshold 3 + tab-always-indent 'complete) +#+end_src + ** [[info:consult#Top][consult]] - Consulting [[info:elisp#Minibuffer Completion][completing-read]] consult offers enhanced completion similar to ivy and helm, but with the @@ -785,6 +810,13 @@ I primarily use SBCL, so I set it as the ~inferior-lisp-program~ (package-install 'sly) #+end_src +**** Sly Contribs + +#+begin_src emacs-lisp + (package-install 'sly-quicklisp) +#+end_src + + *** COMMENT Slime The ~slime~ package v2.26.1 in the nongnu repo seems to have an issue with emacs 28.1 (?) so I'm installing it from source. @@ -1339,7 +1371,7 @@ Saves to a temp file and puts the filename in the kill ring." #+begin_src emacs-lisp (package-install 'windresize) -#+en +#+end_src * COMMENT scratch -- cgit v1.2.3