diff options
author | Guangxiong Lin <[email protected]> | 2022-03-20 00:00:11 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-20 00:00:11 +0800 |
commit | 63b442f31c66dd8e2e3a1e6d2326fa89b878e093 (patch) | |
tree | 5c1e588fa2545369b9fa38826deb566cd4133de5 | |
parent | ed50afc6a8b01f3f766e11b76f06f6d0b8d33d71 (diff) | |
download | dotfiles-63b442f31c66dd8e2e3a1e6d2326fa89b878e093.tar.gz dotfiles-63b442f31c66dd8e2e3a1e6d2326fa89b878e093.tar.bz2 dotfiles-63b442f31c66dd8e2e3a1e6d2326fa89b878e093.zip |
Improve vertico (emacs)
-rw-r--r-- | .emacs.d/lisp/init-minibuffer.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el index 83a2498..c9cb86f 100644 --- a/.emacs.d/lisp/init-minibuffer.el +++ b/.emacs.d/lisp/init-minibuffer.el @@ -9,6 +9,18 @@ vertico-count 20 vertico-cycle t) +(setq completion-ignore-case t + read-file-name-completion-ignore-case t + read-buffer-completion-ignore-case t) + +(with-eval-after-load 'vertico + (define-key vertico-map (kbd "C-c j") 'vertico-quick-jump) + (define-key vertico-map (kbd "C-c C-j") 'vertico-quick-jump) + (define-key vertico-map (kbd "C-d") + (lambda () (interactive) (vertico-next (/ vertico-count 2)))) + (define-key vertico-map (kbd "C-u") + (lambda () (interactive) (vertico-previous (/ vertico-count 2))))) + (when (gx/maybe-require-package 'orderless) (setq orderless-matching-styles '(orderless-literal orderless-regexp)) |