This is similar question as this How do I change indent in php-mode to 2 spaces in Emacs? but for javascript-mode, I've try the same
(setq c-basic-offset 2)
but it don't work.
This is similar question as this How do I change indent in php-mode to 2 spaces in Emacs? but for javascript-mode, I've try the same
(setq c-basic-offset 2)
but it don't work.
Found this as well
(setq js-indent-level 2)
tab-width (or c-basic-offset) unless explicitly overridden.