Usage: (add-hook 'js-mode-hook #'js-auto-format-mode) To customize: M-x customize-group RET js-auto-format RET For details, please see `https://github.com/ybiquitous/js-auto-format-mode'.