summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-10-05 14:33:10 +0200
committerAlan Pearce2017-10-05 14:33:10 +0200
commit3605ae616be961ccceef096d882a9985ebc7f0c4 (patch)
tree32428b521dea1414dbf7b0822bcde8bb536d36d8 /emacs
parent590c8d7e92a0dd1d7265a8661c634c70e7f8505d (diff)
downloaddotfiles-3605ae616be961ccceef096d882a9985ebc7f0c4.tar.lz
dotfiles-3605ae616be961ccceef096d882a9985ebc7f0c4.tar.zst
dotfiles-3605ae616be961ccceef096d882a9985ebc7f0c4.zip
Emacs: Use prettier-standard if installed
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el2
1 files changed, 2 insertions, 0 deletions
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")))))