diff --git a/.emacs.d/init.el b/.emacs.d/init.el index c8b2414..ce2e7e7 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -903,7 +903,10 @@ :init (defun prettier-js-mode-maybe () (interactive) - (when (file-exists-p (concat (magit-toplevel) ".prettierrc")) + (when (not (string= + "" + (shell-command-to-string + (concat "prettier --find-config-path " (buffer-file-name))))) (prettier-js-mode t)))) ;;; Local Variables