bastibe / org-static-blog

A static site generator using org-mode
BSD 3-Clause "New" or "Revised" License
341 stars 74 forks source link

temporarily disable auto-insert-mode when creating HTML files #121

Closed snickerbockers closed 1 year ago

snickerbockers commented 1 year ago

auto-insert-mode is a minor mode which automatically inserts text whenever find-file creates a new file. It's used for license statements and boilerplate "skeleton code".

In the case of HTML files, it will prompt the user for a webpage title then write in a skeleton HTML file. This interferes with org-static-blog.

The solution is to temporarily set auto-insert to nil when opening a new file. This tells auto-insert-mode to stay out of our way.

bastibe commented 1 year ago

Sounds reasonable. Thank you for the pull request.

Is this ready to merge?

snickerbockers commented 1 year ago

yes, it is.

bastibe commented 1 year ago

Wonderful, thank you very much!