1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

; Fix 'python-ts-mode'

* lisp/progmodes/python.el (python-ts-mode): Fix setting up
'auto-mode-alist'.  (Bug#73531)
This commit is contained in:
Eli Zaretskii 2024-09-28 19:53:30 +03:00
parent a8a3f04f8a
commit c934450d14

View file

@ -7219,7 +7219,7 @@ implementations: `python-mode' and `python-ts-mode'."
(when python-indent-guess-indent-offset
(python-indent-guess-indent-offset))
(add-to-list 'auto-mode-alist '(python--auto-mode-alist-regexp . python-ts-mode))
(add-to-list 'auto-mode-alist (cons python--auto-mode-alist-regexp 'python-ts-mode))
(add-to-list 'interpreter-mode-alist '("python[0-9.]*" . python-ts-mode))))
(derived-mode-add-parents 'python-ts-mode '(python-mode))