feat(tazjin/emacs): Add #'rg-in-project
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
This commit is contained in:
parent
83e81def23
commit
bef01b1419
3 changed files with 12 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue