[Top][All Lists]

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

SOLVED: Exporting HTML on save

From: Russell Adams
Subject: SOLVED: Exporting HTML on save
Date: Fri, 3 Jul 2020 14:03:04 +0200
User-agent: Mutt/1.10.1 (2018-07-13)

I ran into a situation with a simple file where I wanted it to be exported to
html every time I saved. After some troubleshooting and IRC help I was able to
get a header/file local variable to work. Posting here for others to save time!

Place this at the top of your .org file:

# -*- eval: (add-hook 'after-save-hook (lambda() (org-html-export-to-html)) nil 
'localonly); -*-

Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

reply via email to

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