summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/emacs/.emacs.d/init.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el
index f3892db7..066842d7 100644
--- a/user/emacs/.emacs.d/init.el
+++ b/user/emacs/.emacs.d/init.el
@@ -778,7 +778,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 
 (use-package prettier-js
   :custom ((prettier-js-show-errors 'echo))
-  :ghook ('(typescript-mode-hook) #'prettier-js-mode t)
+  :ghook ('(javascript-mode-hook typescript-mode-hook) #'prettier-js-mode t)
   :config (progn
             (if-let ((prettier_d (executable-find "prettier_d")))
                 (setq prettier-js-command prettier_d