about summary refs log tree commit diff stats
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-10-14 16:53:09 +0100
committerDavid Morgan <djm_uk@protonmail.com>2022-10-14 16:53:09 +0100
commit57288a4d9079dca6cc99b3d84413a839691d0964 (patch)
treefbd35340d61692519b1938427b4f9dd4d214025e /.emacs.d/lisp
parent5812e11f2d5c0a2f4473a995e2918575ff52d146 (diff)
downloaddotfiles-57288a4d9079dca6cc99b3d84413a839691d0964.tar.gz
At some rg and deadgrep bindings
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r--.emacs.d/lisp/init-search.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-search.el b/.emacs.d/lisp/init-search.el
index 7bd4527..43155c0 100644
--- a/.emacs.d/lisp/init-search.el
+++ b/.emacs.d/lisp/init-search.el
@@ -42,9 +42,17 @@
 (use-package rg
   :bind
   ("C-c C-M-S-r" . rg-menu)
-  ("C-c C-M-r" . rg))
+  ("C-c C-M-r" . rg)
+  ("C-z" . rg-dwim))
 
-(use-package deadgrep)
+(use-package deadgrep
+  :config
+  (defun deadgrep-symbol-at-point ()
+    (interactive)
+    (deadgrep (thing-at-point 'symbol)))
+  :bind
+  ("C-S-z" . deadgrep-symbol-at-point)
+  ("C-c c d" . deadgrep))
 
 (use-package affe
   :config