branch: elpa/blueprint-ts-mode commit b3e84e671bbf6f8ea5745f935a39264e83efaa03 Author: Peter Oliver <g...@mavit.org.uk> Commit: Peter Oliver <g...@mavit.org.uk>
Autoload adding of .blp to auto-mode-alist This allows `.blp` files to be loaded with this mode without any additional configuration. --- blueprint-ts-mode.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blueprint-ts-mode.el b/blueprint-ts-mode.el index 8eb19eabfb..6aa833f5f6 100644 --- a/blueprint-ts-mode.el +++ b/blueprint-ts-mode.el @@ -136,7 +136,9 @@ Saves me from writing :language `LANGUAGE' for every `RULES'." (setq-local treesit-font-lock-settings blueprint-ts-mode--tresit-font-lock-setting) (treesit-major-mode-setup))) +;;;###autoload (add-to-list 'auto-mode-alist '("\\.blp\\'" . blueprint-ts-mode)) + (add-to-list 'eglot-server-programs '(blueprint-ts-mode . ("blueprint-compiler" "lsp")))