I\'ve been unsuccessful in getting Emacs to switch from 8 space tabs to 4 space tabs when pressing the TAB in buffers with the major mode text-mode.
text-mode
(setq-default indent-tabs-mode nil) (setq-default tab-width 4) (setq indent-line-function 'insert-tab) (setq c-default-style "linux") (setq c-basic-offset 4) (c-set-offset 'comment-intro 0)
this works for C++ code and the comment inside too