Emacs: use prettier_d if available
Alan Pearce alan@alanpearce.eu
Fri, 26 Jul 2019 17:04:08 +0200
1 files changed, 5 insertions(+), 1 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -595,7 +595,11 @@ ;;;; Reformat on save (use-package prettier-js - :ghook ('(typescript-mode-hook) #'prettier-js-mode t)) + :ghook ('(typescript-mode-hook) #'prettier-js-mode t) + :config (progn + (if-let ((prettier_d (executable-find "prettier_d"))) + (setq prettier-js-command prettier_d) + (message "prettier_d is not available")))) ;;; Take me to my leader