diff options
author | Alan Pearce | 2017-10-05 14:33:10 +0200 |
---|---|---|
committer | Alan Pearce | 2017-10-05 14:33:10 +0200 |
commit | 3605ae616be961ccceef096d882a9985ebc7f0c4 (patch) | |
tree | 32428b521dea1414dbf7b0822bcde8bb536d36d8 | |
parent | 590c8d7e92a0dd1d7265a8661c634c70e7f8505d (diff) | |
download | nixfiles-3605ae616be961ccceef096d882a9985ebc7f0c4.tar.lz nixfiles-3605ae616be961ccceef096d882a9985ebc7f0c4.tar.zst nixfiles-3605ae616be961ccceef096d882a9985ebc7f0c4.zip |
Emacs: Use prettier-standard if installed
-rw-r--r-- | emacs/.emacs.d/main.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 4fa1b1a4..52f6747c 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"))))) |