From 98f05814c26476bfe65776c047254b53c68adac0 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 12 Aug 2020 20:32:58 -0400 Subject: [PATCH] Autoload `prettier-js` to allow formatting buffers before loading the mode --- .emacs.d/init.el | 1 + 1 file changed, 1 insertion(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 812fc80..226339d 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -955,6 +955,7 @@ (use-package prettier-js :hook ((js2-mode typescript-mode web-mode) . prettier-js-mode-maybe) + :commands prettier-js :init (defun prettier-js-mode-maybe () (interactive)