emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: run a function during capture
Date: Thu, 19 Jan 2017 12:11:12 -0500	[thread overview]
Message-ID: <87ziinq8jz.fsf@gmail.com> (raw)
In-Reply-To: m2o9z3ov37.fsf@polytechnique.org

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> Hello,
>
> It is possible to run a function at the end of capture? I would like to
> call org-board-archive (that downloads a web page according to some
> properties) before finishing the capture?
>

There are three hooks that are run from org-capture-finalize:

- org-capture-prepare-finalize-hook
- org-capture-before-finalize-hook
- org-capture-after-finalize-hook

Check their documentation for when they are run and what the context is.
One of them should be good enough for what you want to do.
-- 
Nick

  reply	other threads:[~2017-01-19 17:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-19 16:47 run a function during capture Alan Schmitt
2017-01-19 17:11 ` Nick Dokos [this message]
2017-01-23 13:49   ` Alan Schmitt
2017-01-20 13:25 ` Xebar Saram
2017-01-23 14:16   ` Alan Schmitt
2017-01-23 18:56     ` Nick Dokos
2017-01-24  8:43       ` Alan Schmitt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ziinq8jz.fsf@gmail.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).