diff options
Diffstat (limited to 'emacs/.emacs.d/main.el')
-rw-r--r-- | emacs/.emacs.d/main.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index d0e5b8d..1121f18 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -595,7 +595,11 @@ With two prefix arguments, write out the day and month name." ;;;; 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 |