Autoload prettier-js to allow formatting buffers before loading the mode

This commit is contained in:
Adam Goldsmith 2020-08-12 20:32:58 -04:00
parent 946a6c74a4
commit 98f05814c2

View File

@ -955,6 +955,7 @@
(use-package prettier-js (use-package prettier-js
:hook ((js2-mode typescript-mode web-mode) . prettier-js-mode-maybe) :hook ((js2-mode typescript-mode web-mode) . prettier-js-mode-maybe)
:commands prettier-js
:init :init
(defun prettier-js-mode-maybe () (defun prettier-js-mode-maybe ()
(interactive) (interactive)