(defun esm-hook() (setq c-indentation-style "gnu") (setq c-basic-offset 2) ) (add-hook 'ecmascript-mode-hook (function esm-hook))