[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Run commands after html export
From: |
Jarmo Hurri |
Subject: |
[O] Run commands after html export |
Date: |
Sat, 12 Oct 2013 13:04:21 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
Greetings.
I feel like a newbie most of the time when I try to do something a bit
more complicated with org. And finding the solution in the manuals is
often pretty hard.
What I would like to do now is to automatically run some commands after
I have exported an org file as html. (In particular, I want to commit to
git and push changes to remote repo.) I know about publishing, but it
seems like overkill for a single org file.
I looked at the documentation, found hooks, and read source code, but
could not find the solution. The hooks in org-export-html-final-hook
seem to be run before the file is saved. I found no applicable hooks in
org-exp.el.
While I am at it, is there a way to set a default export type (html), or
do I have to bind a new key or rebind C-c C-e?
Thanks in advance - again.
Jarmo
- [O] Run commands after html export,
Jarmo Hurri <=