about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-10-21 16:19:34 +0100
committerDavid Morgan <djm_uk@protonmail.com>2022-10-21 16:19:34 +0100
commit5c5f41f2d9f86b567e8cbac4e1e95bc38d7a77ea (patch)
tree15ea9cc7ffb18a1f8ecd556a11c482acbab41f50
parentb1175658b9cb00fa1048d720999bea39209e7120 (diff)
downloaddotfiles-5c5f41f2d9f86b567e8cbac4e1e95bc38d7a77ea.tar.gz
Add more things to search-map
-rw-r--r--.emacs.d/lisp/init-search.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-search.el b/.emacs.d/lisp/init-search.el
index 3ffe6d3..76f899f 100644
--- a/.emacs.d/lisp/init-search.el
+++ b/.emacs.d/lisp/init-search.el
@@ -40,6 +40,8 @@
         ([remap isearch-query-replace-regexp] . anzu-isearch-query-replace-regexp)))
 
 (use-package rg
+  :config
+  (define-key search-map "s" 'rg)
   :bind
   ("C-c C-M-S-r" . rg-menu)
   ("C-c C-M-r" . rg)
@@ -50,6 +52,8 @@
   (defun deadgrep-symbol-at-point ()
     (interactive)
     (deadgrep (thing-at-point 'symbol)))
+  (define-key search-map "d" 'deadgrep)
+  (define-key search-map "D" 'deadgrep-symbol-at-point)
   :bind
   ("C-," . deadgrep-symbol-at-point)
   ("C-c c d" . deadgrep))
@@ -74,6 +78,10 @@
      (list prefix-arg (when-let ((s (symbol-at-point)))
                         (symbol-name s))))
     (affe-find dir initial))
+  (define-key search-map "#" 'affe-grep)
+  (define-key search-map "~" 'my/affe-grep-symbol-at-point)
+  (define-key search-map "M-z" 'affe-find)
+  (define-key search-map "M-Z" 'my/affe-find-symbol-at-point)
   :bind
   ("C-#" . affe-grep)
   ("C-c z" . affe-find)