summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2019-11-08 14:12:34 +0100
committerAlan Pearce2019-11-08 14:12:34 +0100
commitbeffc6b2d085fa5945670c2909dfee852d7a7bb1 (patch)
tree22fd62abbe9430d7b71fd28df7a1ea30105468f3 /user
parent96002fa4d62b03023e6ff02d0a1c1f3e4a8d88f7 (diff)
downloadnixfiles-beffc6b2d085fa5945670c2909dfee852d7a7bb1.tar.lz
nixfiles-beffc6b2d085fa5945670c2909dfee852d7a7bb1.tar.zst
nixfiles-beffc6b2d085fa5945670c2909dfee852d7a7bb1.zip
Emacs: use prettier with js files
Diffstat (limited to 'user')
-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