Emacs: use prettier with js files
Alan Pearce alan@alanpearce.eu
Fri, 08 Nov 2019 14:12:34 +0100
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M user/emacs/.emacs.d/init.el → user/emacs/.emacs.d/init.el
@@ -778,7 +778,7 @@ ;;;; Reformat on save (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