mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-08 15:23:35 -05:00
fix(tree-sitter): suppress changes to {auto,interpreter}-mode-alist
...when auto-loading a ts-mode package.
This commit is contained in:
@@ -62,7 +62,10 @@
|
||||
(warning-suppress-types
|
||||
(cons '(treesit) warning-suppress-types)))
|
||||
(or (not (autoloadp fn))
|
||||
(autoload-do-load fn mode)))
|
||||
;; ts-modes usually change these alists at autoload
|
||||
;; *and* load time.
|
||||
(let (auto-mode-alist interpreter-mode-alist)
|
||||
(autoload-do-load fn mode))))
|
||||
;; Only prompt once, and log other times.
|
||||
(or (null (cdr ts)) ; no grammars, no problem!
|
||||
;; If the base/fallback mode doesn't exist, let's
|
||||
|
Reference in New Issue
Block a user