From: Andreas Gerler Date: Fri, 9 Nov 2018 14:51:44 +0000 (+0100) Subject: Add snw and sn X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=6c936a6743274df146c465ae96ddbdbbd583ae76;p=emacsconfig.git 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 --- 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