emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] run a function during capture


From: Nick Dokos
Subject: Re: [O] run a function during capture
Date: Mon, 23 Jan 2017 13:56:09 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Alan Schmitt <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]