From 68bfa1c0f8850ebb6ca87618cfec4b5b5933d909 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 16 Oct 2024 16:46:44 +0100 Subject: Some changes to completion completion-styles, vertico and minibuffer binds. --- Emacs/.config/emacs/config.org | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Emacs/.config') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 1c7a3bc..99ef47a 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -698,7 +698,7 @@ in it. :states '(normal insert) :keymaps 'minibuffer-local-map "" #'switch-to-completions - "C-M-j" #'exit-minibuffer + "RET" #'exit-minibuffer "M-j" #'next-line-or-history-element "M-k" #'previous-line-or-history-element)) #+end_src @@ -754,11 +754,11 @@ outperforming ~icomplete~ consistently when displaying results. (general-def :state '(normal insert) :keymaps 'vertico-map - "M-j" #'vertico-next - "M-k" #'vertico-previous - "RET" #'vertico-exit - "TAB" #'minibuffer-complete - "SPC" #'self-insert-command)) + "M-j" #'vertico-next + "M-k" #'vertico-previous + "RET" #'vertico-exit + "TAB" #'minibuffer-complete + "SPC" #'self-insert-command)) #+end_src *** Consult Consult provides some improved replacements for certain inbuilt @@ -827,10 +827,10 @@ things ever. :straight t :after vertico :config - (setq completion-styles '(substring orderless basic) + (setq completion-styles '(orderless substring basic) completion-category-defaults nil completion-category-overrides - '((file (styles initials substring partial-completion))))) + '((file (styles flex partial-completion substring))))) #+end_src *** Company Company is the auto complete system I use. I don't like having heavy -- cgit v1.2.3-13-gbd6f