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.
Share Improve this question edited May 23, 2017 at 11:54 CommunityBot 11 silver badge asked Sep 24, 2013 at 8:18 jcubicjcubic 66.5k58 gold badges248 silver badges449 bronze badges1 Answer
Reset to default 39Found this as well
(setq js-indent-level 2)