So I'm trying to setup default indentation in Emacs. Currently I have the following at the bottom of my
.emacs file as per a number of tutorials I've found on the internet.
(setq-default indent-tabs-mode nil) (setq tab-width 3) (defvaralias 'c-basic-offset 'tab-width) (defvaralias 'cperl-ident-level 'tab-width) (defvaralias 'js-indent-level 'tab-width)
Except... it doesn't work; when I open a C++ code file, tab-width appears to be set to 8. Can someone tell me why this is, and also what I need to do to fix it?