Charles Cave <charles_c...@optusnet.com.au> writes:

> I'm exploring the many features of org-capture and I see the
> documentation about a function for finding the location for refiling.

Let's say you have this capture template:

,----
| (setq org-capture-templates
|   '(("w" "WP TEST" entry (function bzg-find-location)
|      "* TODO Put this after abcde\n\n" :prepend t)))
`----

And this finding function:

,----
| (defun bzg-find-location ()
|   "Example: find my bzg.org file and the abcde string in the current buffer"
|   (find-file "~/org/bzg.org")
|   (goto-char (point-min))
|   (re-search-forward "abcde" nil t)
|   (newline 2))
`----

Capturing with "w" will put the entry after the "abcde" string in
bzg.org.

HTH,

-- 
 Bastien

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to