The next commit will add modeline support. By default, modelines have the final work on which options to set. However, mostly for testing, this isn't flexible enough.
The next commit will add modeline support and share the code.