all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* SOLVED: Exporting HTML on save
@ 2020-07-03 12:03 Russell Adams
  0 siblings, 0 replies; only message in thread
From: Russell Adams @ 2020-07-03 12:03 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-03 12:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-03 12:03 SOLVED: Exporting HTML on save Russell Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.