Emacs tab indentation in python mode is using tab instead of 4-spaces.
My emacs init.el file contains:
(setq-default indent-tabs-mode t)
(setq-default tab-width 4)
(setq indent-line-function 'insert-tab)
I have tried:
(setq-default indent-tabs-mode nil)
but it didn't make any difference.
Using white-space
mode in emacs I see that tab does NOT indent 4-white-spaces and untabify
fixes the tab to 4-white-spaces. How do I make TAB to work as four white-spaces?
UPDATE fixed by changing init.el config to:
(add-hook 'python-mode-hook
(lambda ()
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq-default python-indent 4)))