(defun org-mode-export-myfile () | |
"Export org document to HTML automatically on change" | |
(when (equal (buffer-file-name) "/path/to/links.org") | |
(progn | |
(org-html-export-to-html) | |
(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