Deprecation Notices

Org Hugo Auto Export feature now a minor mode<2019-01-03 Thu> #

Changes needed to be done in user config #

  1. 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. – <2019-04-15 Mon>

  2. 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))

Summary #

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

Fork me on GitHub