]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
sn and snw: use rgrep instead of lgrep
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Tue, 26 Apr 2022 10:35:36 +0000 (12:35 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Tue, 26 Apr 2022 10:35:36 +0000 (12:35 +0200)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
bba.org

diff --git a/bba.org b/bba.org
index 949527b187bc8c5c12650b42d8034e563f031fcc..772fbd80d49bc1220a1613219d118a49ef19beea 100644 (file)
--- 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