Fix auto-mode-alist', but Emacs still defaults to python-mode'

This commit is contained in:
Gerard Vermeulen 2022-12-21 14:05:59 +01:00
parent 0ddddbdbaf
commit 68092c597d

View File

@ -396,7 +396,7 @@ the contents of packages and allows to update packages to the latest version.
;; (setq major-mode-remap-alist '((python-mode . python-ts-mode)))
;; Plays nicely with eglot:
(add-to-list 'auto-mode-alist
`(,(rx ".py" (opt "[iw]") eos) . python-ts-mode)))))
`(,(rx ".py" (opt (any "iw")) eos) . python-ts-mode)))))
#+end_src
* [[info:emacs#Faces][Text faces or styles (info)]]