about summary refs log tree commit diff stats
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-09-26 17:02:58 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-09-26 17:02:58 +0100
commit1d24ea84eb86752a1032e1a90f7e9d07a157a256 (patch)
treedab93295ce8e448b4233afbc0e5bfd3546b38fe3 /.emacs.d/lisp
parent454a1bb68c7b0556df952f45e9f13fd6892f356b (diff)
downloaddotfiles-master.tar.gz
Fix affe-grep previous key HEAD master
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r--.emacs.d/lisp/init-search.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-search.el b/.emacs.d/lisp/init-search.el
index b42e49f..d9dbb13 100644
--- a/.emacs.d/lisp/init-search.el
+++ b/.emacs.d/lisp/init-search.el
@@ -191,8 +191,6 @@
     (setq input (cdr (orderless-compile input)))
     (cons input (apply-partially #'orderless--highlight input t)))
   (setq affe-regexp-compiler #'affe-orderless-regexp-compiler)
-  ;; Manual preview key for `affe-grep'
-  (consult-customize affe-grep :preview-key (kbd "M-."))
   (defun my/affe-grep-symbol-at-point (&optional dir initial)
     (interactive
      (list prefix-arg (when-let ((s (symbol-at-point)))
@@ -203,6 +201,7 @@
      (list prefix-arg (when-let ((s (symbol-at-point)))
                         (symbol-name s))))
     (affe-find dir initial))
+  (consult-customize affe-grep my/affe-grep-symbol-at-point :preview-key "M-.")
   :bind
   ("C-#" . affe-grep)
   ("C-c z" . affe-find)