From 3fc415cde2b8caf97f5b872b5ea361db31b32d23 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 14 Apr 2022 19:14:05 -0700 Subject: replace avy/counsel with vertico/consult --- emacs/custom/my-completion.el | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 emacs/custom/my-completion.el (limited to 'emacs/custom/my-completion.el') 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 -- cgit 1.4.1