From 1d24ea84eb86752a1032e1a90f7e9d07a157a256 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Thu, 26 Sep 2024 17:02:58 +0100 Subject: Fix affe-grep previous key --- .emacs.d/lisp/init-search.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.emacs.d') 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) -- cgit 1.4.1-2-gfad0