From: john muhl Date: Wed, 18 Dec 2024 16:59:19 +0000 (-0600) Subject: Add 'lua-ts-mode' to 'interpreter-mode-alist' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ddfdebc4cf809042ef25ea4c6c08ca7d92ac8c5c;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) (cherry picked from commit 08b62132ddee01f0c84bc478b718370b51fade6a) --- diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el index 9d2969d6ac4..6fa3e51b34b 100644 --- a/lisp/progmodes/lua-ts-mode.el +++ b/lisp/progmodes/lua-ts-mode.el @@ -839,7 +839,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 '("\\