Charles Cave <[email protected]> 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.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode