You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 auto-loaded, then Emacs thinks this setting is unsafe, despite it being marked as :safe #'integerp:
However, a safety predicate defined using :safe will only be known once the package that contains the defcustom is loaded, which is often too late. As an alternative, you can use the autoload cookie (see Autoload) to assign the option its safety predicate, like this:
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 auto-loaded, then Emacs thinks this setting is unsafe, despite it being marked as
:safe #'integerp
:web-mode/web-mode.el
Lines 105 to 110 in a9d2184
According to Emacs Lisp: File Local Variables:
So it seems to me that the definition for
web-mode-code-indent-offset
should be revised to be:If you would like, I can prepare a patch. Please let me know how you’d like me to contribute.
The text was updated successfully, but these errors were encountered: