From: Andreas Gerler Date: Tue, 26 Apr 2022 10:35:36 +0000 (+0200) Subject: sn and snw: use rgrep instead of lgrep X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=fe064eac229e53231651af2ab1f48b5d4db65b91;p=emacsconfig.git sn and snw: use rgrep instead of lgrep Signed-off-by: Andreas Gerler --- diff --git a/bba.org b/bba.org index 949527b1..772fbd80 100644 --- a/bba.org +++ b/bba.org @@ -1377,12 +1377,12 @@ Your notes are more useful if you can easily search them! (defun snw () "Search work notes." (interactive) - (lgrep (read-string "search for regex:") "work*.org" "~/workorg")) + (rgrep (read-regexp "Search for" 'grep-tag-default 'grep-regexp-history) "*.org" (file-truename "~/workorg"))) (defun sn () "Search notes." (interactive) - (lgrep (read-string "search for regex:") "notes.org" "~/org")) + (rgrep (read-regexp "Search for" 'grep-tag-default 'grep-regexp-history) "*.org" (file-truename "~/org"))) #+END_SRC