From 3605ae616be961ccceef096d882a9985ebc7f0c4 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 5 Oct 2017 14:33:10 +0200 Subject: Emacs: Use prettier-standard if installed --- emacs/.emacs.d/main.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'emacs') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 4fa1b1a..52f6747 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -2090,6 +2090,8 @@ With prefix TO-CURRENT-BUFFER, insert command output into buffer." (add-node-modules-path) (when (executable-find "eslint") (setq flycheck-javascript-eslint-executable "eslint")) + (when (executable-find "prettier-standard") + (setq flycheck-javascript-standard-executable "prettier-standard")) (when (executable-find "standard") (setq flycheck-javascript-standard-executable "standard"))))) -- cgit 1.4.1