diff --git a/.emacs.d/init.el b/.emacs.d/init.el index b0d27d7..e9ce562 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1018,7 +1018,7 @@ :init (defun prettier-js-mode-maybe () (interactive) - (when (not (call-process "prettier" nil nil nil "--find-config-path" (buffer-file-name))) + (when (= 0 (call-process "prettier" nil nil nil "--find-config-path" (buffer-file-name))) (prettier-js-mode t)))) (use-package show-marks