branch: elpa/typescript-mode
commit 8910e12525390e971022bf263bcd6579e83c82df
Author: Daniel Kraus <[email protected]>
Commit: Daniel Kraus <[email protected]>

    Add autoload cookie with safe-local-var for typescript-indent-level
    
    If this is not autoloaded then it is only marked as safe from the
    defcustom macro *after* the package is loaded.
    This may be to late if someone opens a project with
    `typescript-indent-level` as dir-local set but has not
    loaded typescript-mode before.
---
 typescript-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/typescript-mode.el b/typescript-mode.el
index 39b2c97aa9..6a08260bd3 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -605,6 +605,7 @@ Match group 1 is MUMBLE.")
   :type 'integer
   :safe 'integerp
   :group 'typescript)
+;;;###autoload(put 'typescript-indent-level 'safe-local-variable #'integerp)
 
 (defcustom typescript-expr-indent-offset 0
   "Number of additional spaces used for indentation of continued expressions.

Reply via email to