This is what
indent-tabs-mode variable controls this (in general, for any mode).
js-mode, so there isn't a
(defun my-js-mode-hook () "Custom `js-mode' behaviours." (setq indent-tabs-mode nil)) (add-hook 'js-mode-hook 'my-js-mode-hook)