From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Run commands after html export Date: Sat, 12 Oct 2013 13:04:21 +0300 Message-ID: <871u3qajq2.fsf@syk.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUw3t-0004bw-8o for emacs-orgmode@gnu.org; Sat, 12 Oct 2013 06:04:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUw3l-0005Fv-Vv for emacs-orgmode@gnu.org; Sat, 12 Oct 2013 06:04:41 -0400 Received: from plane.gmane.org ([80.91.229.3]:49129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUw3l-0005Fo-P4 for emacs-orgmode@gnu.org; Sat, 12 Oct 2013 06:04:33 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VUw3j-0006X1-Pv for emacs-orgmode@gnu.org; Sat, 12 Oct 2013 12:04:31 +0200 Received: from cs78160219.pp.htv.fi ([62.78.160.219]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Oct 2013 12:04:31 +0200 Received: from jarmo.hurri by cs78160219.pp.htv.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Oct 2013 12:04:31 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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