about summary refs log tree commit diff
path: root/users/tazjin/emacs/config/bindings.el
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-02-22T08·49+0200
committertazjin <mail@tazj.in>2021-02-22T13·50+0000
commitbef01b141931f80afeb9716ba199eaaa9d0c1505 (patch)
tree6bb6c84a1a03c54abd929e7600b819550ed61c70 /users/tazjin/emacs/config/bindings.el
parent83e81def2316de2800d3a78b8294835a5319c191 (diff)
feat(tazjin/emacs): Add #'rg-in-project r/2225
Uses project.el to anchor the ripgrep search. In combination with my
project detection logic, this means that grepping in TVL subprojects
works automatically.

Change-Id: I2705466d1de156c08ff0401a71112864aa24f976
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2542
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin/emacs/config/bindings.el')
-rw-r--r--users/tazjin/emacs/config/bindings.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/users/tazjin/emacs/config/bindings.el b/users/tazjin/emacs/config/bindings.el
index 7188bd3ef37b..029aa2d0e507 100644
--- a/users/tazjin/emacs/config/bindings.el
+++ b/users/tazjin/emacs/config/bindings.el
@@ -34,6 +34,9 @@
 ;; Open a file in project:
 (global-set-key (kbd "C-c f") 'project-find-file)
 
+;; Search in a project
+(global-set-key (kbd "C-c r g") 'rg-in-project)
+
 ;; Open a file via magit:
 (global-set-key (kbd "C-c C-f") #'magit-find-file-worktree)