From 6c936a6743274df146c465ae96ddbdbbd583ae76 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Fri, 9 Nov 2018 15:51:44 +0100 Subject: [PATCH] Add snw and sn I have the same functionality in bash. What are notes worth if they are not easily accessible? Signed-off-by: Andreas Gerler --- bba.org | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/bba.org b/bba.org index bb1619d8..15bee170 100644 --- a/bba.org +++ b/bba.org @@ -1151,6 +1151,24 @@ Get reveal.js as well: (shell-command "osascript -e \'tell app \"Keyboard Maestro Engine\" to do script \"screen-start-cd-to-clipboard\"'") ) #+END_SRC +** search notes +[2018-02-09 Fri 10:57] + +Your notes are more useful if you can easily search them! + +#+BEGIN_SRC emacs-lisp :tangle yes + (defun snw () + "Search work notes." + (interactive) + (lgrep (read-string "search for regex:") "work*.org" "~/workorg")) + + (defun sn () + "Search notes." + (interactive) + (lgrep (read-string "search for regex:") "notes.org" "~/org")) + +#+END_SRC + ** Some initial languages we want org-babel to support #+BEGIN_SRC emacs-lisp :tangle yes -- 2.47.3