Autoload prettier-js
to allow formatting buffers before loading the mode
This commit is contained in:
parent
946a6c74a4
commit
98f05814c2
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user