From 38305d1ec2124ed7854e5ed2a27b4f159206ee19 Mon Sep 17 00:00:00 2001 From: Paul Carduner Date: Tue, 11 Apr 2017 08:35:41 -0700 Subject: [PATCH] Update emacs README with prettier-args example (#1186) --- editors/emacs/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/editors/emacs/README.md b/editors/emacs/README.md index 66420c12..59cc1a53 100644 --- a/editors/emacs/README.md +++ b/editors/emacs/README.md @@ -16,3 +16,12 @@ If you don't use `js-mode`, which is what Prettier targets by default, you'll ne (lambda () (add-hook 'before-save-hook 'prettier-before-save))) ``` + +To adjust the CLI args used for the prettier command, you can customize the `prettier-args` variable: + +```elisp +(setq prettier-args '( + "--trailing-comma" "all" + "--bracket-spacing" "false" +)) +```