I have an HTML file with the following file local variables:
<!-- Local Variables:
web-mode-code-indent-offset: 1
End: -->
If web-mode is already required, visiting this file is just fine. However, if web-mode is autoloaded, then Emacs thinks this setting is unsafe, despite it being marked as :safe.
This is because Emacs doesn’t know that the variable is safe until it loads the package. In order to avoid this, we replace the :safe property with an autoload cookie that assigns its safety predicate:
I have an HTML file with the following file local variables:
If web-mode is already required, visiting this file is just fine. However, if web-mode is autoloaded, then Emacs thinks this setting is unsafe, despite it being marked as :safe.
This is because Emacs doesn’t know that the variable is safe until it loads the package. In order to avoid this, we replace the :safe property with an autoload cookie that assigns its safety predicate:
Fixes fxbois/web-mode#1302.