From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: run a function during capture
Date: Mon, 23 Jan 2017 13:56:09 -0500 [thread overview]
Message-ID: <87vat57ghi.fsf@gmail.com> (raw)
In-Reply-To: m2r33tsvxo.fsf@charm-wifi.irisa.fr
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> ...
> - I added a hook to org-capture-after-finalize-hook
^^^^^
> #+begin_src emacs-lisp
> (defun as/do-org-board-dl-hook ()
> (when (equal (buffer-name) (concat "CAPTURE-" as/org-board-capture-file))
> (org-board-archive)))
>
> (add-hook 'org-capture-before-finalize-hook 'as/do-org-board-dl-hook)
^^^^^^
> #+end_src
>
> (Note: I mistakenly said that the "prepare" hook worked, but that would
^^^^^^^
> download the file even when cancelling, which was wrong)
>
Make up your mind, will you? :-)
--
Nick
next prev parent reply other threads:[~2017-01-23 18:56 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vat57ghi.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.