aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-20 00:00:11 +0800
committerGuangxiong Lin <[email protected]>2022-03-20 00:00:11 +0800
commit63b442f31c66dd8e2e3a1e6d2326fa89b878e093 (patch)
tree5c1e588fa2545369b9fa38826deb566cd4133de5 /.emacs.d
parented50afc6a8b01f3f766e11b76f06f6d0b8d33d71 (diff)
downloaddotfiles-63b442f31c66dd8e2e3a1e6d2326fa89b878e093.tar.gz
dotfiles-63b442f31c66dd8e2e3a1e6d2326fa89b878e093.tar.bz2
dotfiles-63b442f31c66dd8e2e3a1e6d2326fa89b878e093.zip
Improve vertico (emacs)
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/init-minibuffer.el12
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))