From: Jarmo Hurri <jarmo.hurri@syk.fi>
To: emacs-orgmode@gnu.org
Subject: Run commands after html export
Date: Sat, 12 Oct 2013 13:04:21 +0300 [thread overview]
Message-ID: <871u3qajq2.fsf@syk.fi> (raw)
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
next reply other threads:[~2013-10-12 10:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-12 10:04 Jarmo Hurri [this message]
2013-10-12 11:11 ` Run commands after html export Jarmo Hurri
-- strict thread matches above, loose matches on Subject: below --
2013-10-12 12:19 Run commands after html export #orgmode Iannis Zannos
2013-10-13 7:11 ` Run commands after html export Jarmo Hurri
2013-10-12 15:33 Iannis Zannos
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=871u3qajq2.fsf@syk.fi \
--to=jarmo.hurri@syk.fi \
--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).