diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-04-04 09:59:37 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-04-04 09:59:37 -0400 |
| commit | 73fbe6c6a664a78d25a57e6cd23b259bc51a60a9 (patch) | |
| tree | 4bd12af5c931033522ae247e5844e50157089e2f /.emacs.d/modules/et-minibuffer-completion.el | |
| parent | Add find-file-in-project.el dependency to emacs (diff) | |
| download | dotfiles-73fbe6c6a664a78d25a57e6cd23b259bc51a60a9.zip | |
Rename et-completion to et-minibuffer-completion
Diffstat (limited to '.emacs.d/modules/et-minibuffer-completion.el')
| -rw-r--r-- | .emacs.d/modules/et-minibuffer-completion.el | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.emacs.d/modules/et-minibuffer-completion.el b/.emacs.d/modules/et-minibuffer-completion.el new file mode 100644 index 0000000..9c05dae --- /dev/null +++ b/.emacs.d/modules/et-minibuffer-completion.el @@ -0,0 +1,34 @@ +;;; et-completion.el --- Enhance the Emacs completion behavior -*- lexical-binding: t; -*- +;; +;;; Commentary: +;; +;;; Code: + +;; Add a vertical completion UI +(use-package vertico + :custom + (vertico-cycle t) + :init + (vertico-mode)) + +;; Adjust completion search behavior +(use-package orderless + :ensure t + :custom + (completion-styles '(orderless basic)) + (completion-category-overrides '((file (styles partial-completion)))) + (completion-pcm-leading-wildcard t)) + +;; Persist history over emacs restarts. +;; This allows vertico to sort by history position. +(use-package savehist + :init + (savehist-mode)) + +;; Add documentation alongside the completion items +(use-package marginalia + :init + (marginalia-mode)) + +(provide 'et-completion) +;;; et-completion.el ends here |