From: john muhl Date: Wed, 18 Dec 2024 16:59:19 +0000 (-0600) Subject: Add 'lua-ts-mode' to 'interpreter-mode-alist' X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~174 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=08b62132ddee01f0c84bc478b718370b51fade6a;p=emacs.git Add 'lua-ts-mode' to 'interpreter-mode-alist' * lisp/progmodes/lua-ts-mode.el: Enable 'lua-ts-mode' for Lua scripts based on their interpreter line. (Bug#74951) --- diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el index 9d06517a97d..641ea4261b0 100644 --- a/lisp/progmodes/lua-ts-mode.el +++ b/lisp/progmodes/lua-ts-mode.el @@ -853,7 +853,8 @@ Calls REPORT-FN directly." (derived-mode-add-parents 'lua-ts-mode '(lua-mode)) (when (treesit-ready-p 'lua) - (add-to-list 'auto-mode-alist '("\\.lua\\'" . lua-ts-mode))) + (add-to-list 'auto-mode-alist '("\\.lua\\'" . lua-ts-mode)) + (add-to-list 'interpreter-mode-alist '("\\