Org Hugo Auto Export feature now a minor mode – #

Changes needed to be done in user config #

Do not require ox-hugo-auto-export any more! For now, you will get a warning each time you do that require. But in few weeks, the old ox-hugo-auto-export.el file will be deleted from this project, and then doing that require will throw an error. The ox-hugo-auto-export.el has been deleted from this project. So doing that require will throw an error now. – Make these changes in your .dir-locals.el or File Local Variables as applicable: Auto-export on save Earlier Now Enable (org-hugo-auto-export-on-save . t) (eval . (org-hugo-auto-export-mode)) Disable (org-hugo-auto-export-on-save . nil) (eval . (org-hugo-auto-export-mode -1))

org-hugo-auto-export-mode is a new minor mode that now ships with ox-hugo . So the user doesn’t need to do anything special to install it — it simply autoloads.

As a bonus, now M-x org-hugo-auto-export-mode can be used to toggle the auto-exporting on and off in an Org buffer.

See the updated docs for ox-hugo Usage and Auto-export on saving.

For history behind this change, see #247.

— tl;dr: doing the Right thing