From d5ed3d89eedec76ab2c8dcf9ba16136fbb8824cd Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Sat, 15 Jun 2024 17:14:05 +0000 Subject: Add home directory search function --- emacs/init.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacs') diff --git a/emacs/init.el b/emacs/init.el index 1ad577e..c5da370 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -889,3 +889,9 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." (comment-region (mark) (point)) (buffer-substring (mark) (point))) "\n\n")) +;; Define a handy function that allows me to do a full text search of every file in my home directory. For the most part, this works well; ripgrep avoids binary files. However, in some files with embedded images, it can add a lot of junk to the output. +(defun noa/consult-rg-home () + (interactive) + (consult-ripgrep "~/")) +(global-set-key (kbd "") #'noa/consult-rg-home) + -- cgit 1.4.1-2-gfad0