I did what it said in this very helpful thread on how to it in Emacs 23, but it wouldn't work. The indent level keeps on being 4 (the default).
I am on a Mac (MacOS 10.8) using Emacs 24.3.
I did what it said in this very helpful thread on how to it in Emacs 23, but it wouldn't work. The indent level keeps on being 4 (the default).
I am on a Mac (MacOS 10.8) using Emacs 24.3.
And the solution turned out to be rather simple. Just include this in your .emacs file
(custom-set-variables
'(python-guess-indent nil)
'(python-indent-offset 2))
So, that is python-indent-offset
rather than python-indent
.