I am using auto-insert so that I can get the usual things I use for org mode when opening a new .org file, example:
#+AUTHOR: Edgar Aroutiounian #+EMAIL: email@example.com #+STARTUP: indent #+LANGUAGE: en #+OPTIONS: toc:nil num:0
and this gets inserted into every new .org file because I added a
define-auto-insert for .org files.
The startup in-buffer setting is important to me, unfortunately I can't get it org-mode to respect it. (Before discovering auto-insert, I used a one off function that inserted this stuff and then called org-mode-restart)
Adding a call to revert-buffer at the end of the org-mode-hook doesn't work either because for new files there is nothing to revert to, and obviously putting a org-mode-restart in the add-hook for org-mode will crap out as well.
I found that
org-ctrl-c-ctrl-c will redo the in-buffer settings if the mark is placed over the
#+STARTUP: indent, so I tried adding
(org-ctrl-c-ctrl-c "#+STARTUP: indent\n") to my org-mode-hook, but that didn't work either. (Was that even a good approach?)
How can I get org-mode to reparse my in-buffer settings for all .org files?