(defun jsm-hook() (setq js-indent-level 2) ) (add-hook 'js-mode-hook (function jsm-hook))