1

I have several capture templates. With one of them, I want an Elisp function to transform the contents before saving it. I know of org-capture-prepare-finalize-hook, but this will run for every template. Is there a way to ensure a hook runs only for a given capture template?

In case people are interested, the transformation I want to do is this:

The capture template will have a long list of checkbox items (all unchecked). I want to check one or two of these every time I use that template. Then I want to store only the items that were checked - so my function would delete all unchecked items (declutter).

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.