all repos — archive/dotfiles @ b7c34e2d75a4709bf6bf9d0c0f2d4fc8b908a437

Superseded by nixfiles

Emacs: ensure prettier_d respects configuration
Alan Pearce alan@alanpearce.eu
Tue, 30 Jul 2019 12:57:22 +0200
commit

b7c34e2d75a4709bf6bf9d0c0f2d4fc8b908a437

parent

f3cb54923260b850cfc510d28c345d5c98937d8b

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -598,7 +598,8 @@ (use-package prettier-js   :ghook ('(typescript-mode-hook) #'prettier-js-mode t)
   :config (progn
             (if-let ((prettier_d (executable-find "prettier_d")))
-                (setq prettier-js-command prettier_d)
+                (setq prettier-js-command prettier_d
+                      prettier-js-args '("--pkg-conf"))
               (message "prettier_d is not available"))))
 
 ;;; Take me to my leader