diff options
author | shoshin <shoshin@cicadas.surf> | 2023-04-06 19:09:40 -0500 |
---|---|---|
committer | shoshin <shoshin@cicadas.surf> | 2023-04-06 19:09:40 -0500 |
commit | 323dbdd16ae4ed6f0404d37d734ec022694a1221 (patch) | |
tree | 5d938f27a2a14fece7f1de6d90cfe9fb06c3abec /shoshimacs.org | |
parent | ed5231cf4fc345309b500e1fe89216906966914a (diff) |
Add: orderless and Fix: broken tangle
Diffstat (limited to 'shoshimacs.org')
-rw-r--r-- | shoshimacs.org | 40 |
1 files changed, 36 insertions, 4 deletions
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 <TAB> (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 |