about summary refs log tree commit diff stats
path: root/emacs-prelude/personal/lisp/init-completion.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-07-09 09:30:42 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-07-09 09:30:42 +0100
commitf009e48d74f38b507b30d9f799bc6f964e0c27f5 (patch)
tree742133abf42d5756712851cedd6af6512cf13c06 /emacs-prelude/personal/lisp/init-completion.el
parentf06372b0c5db56a547972238aef203ddc6b8b4c6 (diff)
downloaddotfiles-f009e48d74f38b507b30d9f799bc6f964e0c27f5.tar.gz
Update some more - bindings and git-gutter
Diffstat (limited to 'emacs-prelude/personal/lisp/init-completion.el')
-rw-r--r--emacs-prelude/personal/lisp/init-completion.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/emacs-prelude/personal/lisp/init-completion.el b/emacs-prelude/personal/lisp/init-completion.el
index 08e2cba..91d8244 100644
--- a/emacs-prelude/personal/lisp/init-completion.el
+++ b/emacs-prelude/personal/lisp/init-completion.el
@@ -5,6 +5,7 @@
   (setq tab-always-indent 'complete)
 
   ;; for vertico
+  ;; Do not allow the cursor in the minibuffer prompt
   (setq minibuffer-prompt-properties
         '(read-only t cursor-intangible t face minibuffer-prompt))
   (add-hook 'minibuffer-setup-hook #'cursor-intangible-mode)
@@ -244,14 +245,17 @@
   (embark-collect-mode . consult-preview-at-point-mode))
 
 ;; async fuzzy finder (uses consult and orderless)
+(prelude-require-package 'affe)
 (use-package affe
   :after orderless
   :config
   ;; Configure Orderless
   (setq affe-regexp-function #'orderless-pattern-compiler
         affe-highlight-function #'orderless--highlight)
-
   ;; Manual preview key for `affe-grep'
-  (consult-customize affe-grep :preview-key (kbd "M-.")))
+  (consult-customize affe-grep :preview-key (kbd "M-."))
+  :bind
+  (("C-c c a g" . affe-grep)
+   ("C-c c a f" . affe-find)))
 
 (provide 'init-completion)