In switching coding styles, I need to go from a one tab width of 4 indentation to a two space indentation.
I've added the following to my .emacs file, at the very end:
(setq indent-tabs-mode nil)
(setq c-basic-offset 2)
Unfortunately, that's not working. I still need to M-x set-variable for c-basic-offset, setting it to 2 for each file I open, to successfully change the indentation to 2 spaces instead of 1 tab.
Is there another config setting I need to add after these settings to make the new c-basic-offset stick?