diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-14 19:14:05 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-14 19:14:05 -0700 |
commit | 3fc415cde2b8caf97f5b872b5ea361db31b32d23 (patch) | |
tree | b7fd46ee3cf22b82bb5288301220647562240b88 /emacs/custom/my-completion.el | |
parent | conf: configure CSS (diff) | |
download | emacs.d-3fc415cde2b8caf97f5b872b5ea361db31b32d23.tar.gz |
replace avy/counsel with vertico/consult
Diffstat (limited to '')
-rw-r--r-- | emacs/custom/my-completion.el | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/emacs/custom/my-completion.el b/emacs/custom/my-completion.el new file mode 100644 index 0000000..98744a7 --- /dev/null +++ b/emacs/custom/my-completion.el @@ -0,0 +1,42 @@ +;;; my-completion.el --- Configure parts related to completion +;;; Commentary: +;;; Code: + +(require 'use-package) + +(use-package vertico + :ensure t + :init + (vertico-mode)) + +(use-package marginalia + :ensure t + :init + (marginalia-mode)) + +(use-package consult + :ensure t + :bind (("C-c h" . consult-history) + ("C-c m" . consult-mode-command) + ("C-x b" . consult-buffer) + ("C-x 4 b" . consult-buffer-other-window) + ("C-x r b" . consult-bookmark) + ("C-x p b" . consult-project-buffer) + ("M-y" . consult-yank-pop) + ("M-g e" . consult-compile-error) + ("M-g f" . consult-flymake) + ("M-g M-g" . consult-goto-line) + ("M-g o" . consult-outline) + ("M-g m" . consult-mark) + ("M-g k" . consult-global-mark) + ("C-c i" . consult-imenu) + ("M-s d" . consult-find) + ("C-c f" . consult-git-grep) + ("C-c /" . consult-ripgrep) + ("M-s l" . consult-line) + ("M-s L" . consult-line-multi) + ("M-s m" . consult-multi-occur) + ("M-s k" . consult-keep-lines))) + +(provide 'my-completion) +;;; my-completion.el ends here |