all repos — archive/dotfiles @ 77983c2ec7fb3dfa0328eb62fe098dfc5a289ceb

Superseded by nixfiles

Emacs: use typescript parser for prettier_d
Alan Pearce alan@alanpearce.eu
Wed, 28 Aug 2019 15:39:49 +0200
commit

77983c2ec7fb3dfa0328eb62fe098dfc5a289ceb

parent

9cc876b29ad5efaad64adf0ec3fe1a2b8c43d687

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -669,7 +669,7 @@ :ghook ('(typescript-mode-hook) #'prettier-js-mode t)   :config (progn
             (if-let ((prettier_d (executable-find "prettier_d")))
                 (setq prettier-js-command prettier_d
-                      prettier-js-args '("--pkg-conf"))
+                      prettier-js-args '("--pkg-conf" "--parser typescript"))
               (message "prettier_d is not available"))))
 
 ;;; E-mail