I'm running Emacs 25.2.2 on Ubuntu 18.04 for WSL. I launch
emacs -q and open a new Python file,
test.py. As soon as I hit the Tab key, I notice the indentation is 8 spaces instead of 4. I don't like that.
describe-variable to check on
python-indent and I see:
python-indent is a variable defined in ‘python.el’. Its value is 8 Local in buffer test.py; global value is 4 This variable is an alias for ‘python-indent-offset’. This variable is obsolete since 24.3; use ‘python-indent-offset’ instead.` [...]
As for the preferred variable:
python-indent-offset is a variable defined in ‘python.el’. Its value is 4 [...]
Am I correct to think that this is a major bug in the default Python mode? What's the simplest fix or workaround?