summary refs log tree commit diff
path: root/emacs/custom/my-completion.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom/my-completion.el')
-rw-r--r--emacs/custom/my-completion.el42
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