Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(defun org-mode-export-myfile ()
"Export org document to HTML automatically on change"
(when (equal (buffer-file-name) "/path/to/")
(message "HTML exported"))))
(add-hook 'after-save-hook 'org-mode-export-myfile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.