summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-16 11:46:57 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-16 11:46:57 -0700
commit6c5755efd0525d57f2fe9b7df1e2a994e08f611f (patch)
tree6b3829c050b79067e1ca9df1c65daf044f7e48d7
parentadd orderless (diff)
downloademacs.d-6c5755efd0525d57f2fe9b7df1e2a994e08f611f.tar.gz
completion: a few more changes
Diffstat (limited to '')
-rw-r--r--emacs/custom/my-completion.el25
1 files changed, 15 insertions, 10 deletions
diff --git a/emacs/custom/my-completion.el b/emacs/custom/my-completion.el
index b4d3b33..005dc81 100644
--- a/emacs/custom/my-completion.el
+++ b/emacs/custom/my-completion.el
@@ -1,5 +1,7 @@
-;;; my-completion.el --- Configure parts related to completion
+;;; my-completion.el --- Configure parts related to completion -*- lexical-binding: t -*-
+
 ;;; Commentary:
+
 ;;; Code:
 
 (require 'use-package)
@@ -9,10 +11,15 @@
   :init
   (vertico-mode)
   (vertico-multiform-mode 1)
+
+  (setq vertico-multiform-categories
+        '((consult-grep buffer)))
+
   (setq vertico-multiform-commands
-        '((consult-imenu buffer indexed)
-          (consult-org-heading buffer indexed)
-          (consult-outline buffer indexed))))
+        '((consult-imenu buffer)
+          (consult-ripgrep buffer)
+          (consult-org-heading buffer )
+          (consult-outline buffer))))
 
 (use-package orderless
   :ensure t
@@ -33,6 +40,9 @@
          ("C-x 4 b" . consult-buffer-other-window)
          ("C-x r b" . consult-bookmark)
          ("C-x p b" . consult-project-buffer)
+         ("C-c i"   . consult-imenu)
+         ("C-c f"   . consult-git-grep)
+         ("C-c /"   . consult-ripgrep)
          ("M-y"     . consult-yank-pop)
          ("M-g e"   . consult-compile-error)
          ("M-g f"   . consult-flymake)
@@ -41,15 +51,10 @@
          ("M-g o"   . consult-org-heading)
          ("M-g m"   . consult-mark)
          ("M-g k"   . consult-global-mark)
-         ("C-c i"   . consult-imenu)
-         ("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)
          ;; Isearch integration
-         ("M-s e" . consult-isearch-history)
+         ("C-s" . consult-isearch-history)
          :map isearch-mode-map
          ("M-e" . consult-isearch-history)   ;; orig. isearch-edit-string
          ("M-s e" . consult-isearch-history) ;; orig. isearch-edit-string