After manually loading it (M-x cmake-ts-mode) this line is added to auto-mode-alist. Note that I don't have any other major cmake mode. When I install one ((e.g., cmake-mode), treesit-auto correctly replaces it. Expected behavior: load cmake-ts-mode regardless whether an alternative exists or not.
cmake-ts-mode is not automatically loaded when opening CMakeLists.txt files. This is because auto-mode-alist is missing the following line:
("\\(?:CMakeLists\\.txt\\|\\.cmake\\)\\'" . cmake-ts-mode)
After manually loading it (M-x cmake-ts-mode) this line is added to auto-mode-alist. Note that I don't have any other major cmake mode. When I install one ((e.g., cmake-mode), treesit-auto correctly replaces it. Expected behavior: load cmake-ts-mode regardless whether an alternative exists or not.
I am using this configuration in ~/.emacs: