How to make spacemacs stop using treesitter mode

134 views Asked by At

I was curious about treesitter so I tried it. I figured out that python-ts-mode has not much features so I want to go back.

But spacemacs now loads all .py files with python-ts-mode. I want that it uses python instead.

I tried to do this, it does nothing. (add-to-list 'auto-mode-alist '("\.py[iw]?\'" . python-mode))

I dont remember how I changed it to python-ts-mode, I believe I was just running some commands from here https://www.masteringemacs.org/article/how-to-get-started-tree-sitter

1

There are 1 answers

0
Harm On

This fixed it for me (setq auto-mode-alist (delete '("\.py[iw]?\'" . python-ts-mode) auto-mode-alist))