Hi John,
It works like a charm.
Thank you so so so much
cheers,
M
> On Oct 10, 2015, at 8:06 AM, John Kitchin wrote:
>
> sure, if you make an interactive function that takes a search argument.
> Something like this
>
> (defun some-name (search-arg)
> (interactive "sQuery: ")
> ; insert code b
Awesome,
I really appreciate this. I must teach myself how to code in lisp :)
cheers,
M
> On Oct 10, 2015, at 8:06 AM, John Kitchin wrote:
>
> sure, if you make an interactive function that takes a search argument.
> Something like this
>
> (defun some-name (search-arg)
> (interactive "sQuery:
sure, if you make an interactive function that takes a search argument.
Something like this
(defun some-name (search-arg)
(interactive "sQuery: ")
; insert code below and change "TODO=\"DONE\"" to search-arg
)
Doyley, Marvin M. writes:
> Is there anyway of making the search term a variable ?
You can do something like this:
By TODO keyword to grab the DONE entries.
#+BEGIN_SRC emacs-lisp
(let ((entries (org-map-entries
(lambda ()
(save-restriction
(org-narrow-to-subtree)
(buffer-string)))
"TODO=\
Is there anyway of making the search term a variable ?
> On Oct 9, 2015, at 1:24 PM, John Kitchin wrote:
>
> You can do something like this:
>
> By TODO keyword to grab the DONE entries.
>
> #+BEGIN_SRC emacs-lisp
> (let ((entries (org-map-entries
>(lambda ()
>
Hi there,
I have a huge org-file with notes I have taken on various topics (my
commonplace org file). Is there an easy way to grab all the entires with a
given tag or keyword to a new org-file ?
Thanks,
M
---
Marvin Doyley Ph.D.
University of Rochester
Associate Professor of Electrical and Com