commit 9d45d77f72c748573a51b45a7b2ff9b71bd9bb74 parent 35235d4772db7ad6266063e9c0d37a5e52d36c44 Author: Vincent Demeester <vincent@sbr.pm> Date: Mon, 19 Aug 2024 23:28:29 +0200 tools/emacs: trying and failing at rg-define-search Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-search.el | | | 17 | ++++++++++++++++- |
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/tools/emacs/config/config-search.el b/tools/emacs/config/config-search.el @@ -128,7 +128,22 @@ confines of word boundaries (e.g. multiple words)." (if p (format "rg: %s" (abbreviate-file-name p)) "rg"))) - (setq rg-buffer-name #'vde/rg-buffer-name)) + (setq rg-buffer-name #'vde/rg-buffer-name) + + ;; (when (f-dir-p "~/src/tektoncd/") + ;; (rg-define-search rg-projects-tektoncd + ;; "Search tektoncd (projects)." + ;; :dir "~/src/tektoncd/" + ;; :files "*.*" + ;; :menu ("Projects" "t" "tektoncd"))) + ;; (when (f-dir-p "~/src/home/") + ;; (rg-define-search rg-projects-home + ;; "Search home." + ;; :dir "~/src/home/" + ;; :files "*.*" + ;; :menu ("Projects" "h" "home"))) + ) + ;; -UseRG (provide 'config-search)