diff options
author | David Morgan <djm_uk@protonmail.com> | 2024-09-26 17:02:58 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2024-09-26 17:02:58 +0100 |
commit | 1d24ea84eb86752a1032e1a90f7e9d07a157a256 (patch) | |
tree | dab93295ce8e448b4233afbc0e5bfd3546b38fe3 /.emacs.d | |
parent | 454a1bb68c7b0556df952f45e9f13fd6892f356b (diff) | |
download | dotfiles-1d24ea84eb86752a1032e1a90f7e9d07a157a256.tar.gz |
Fix affe-grep previous key
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/lisp/init-search.el | 3 |
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) |