From 91b3c8d6b83aca01e7f59e5b1ea7c111323ee50c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sat, 15 Jan 2022 20:44:54 -0500 Subject: Add missing prettier-js package --- modules/init-js-two.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/init-js-two.el b/modules/init-js-two.el index 2e92f65..394b6b5 100644 --- a/modules/init-js-two.el +++ b/modules/init-js-two.el @@ -83,7 +83,10 @@ ;; json-mode: Major mode for editing JSON files with emacs ;; https://github.com/joshwnj/json-mode +(use-package prettier-js + :pin "MELPA") (use-package json-mode + :pin "MELPA" :ensure t :defer 20 :custom @@ -91,7 +94,7 @@ (json-reformat:pretty-string? t) (js-indent-level 2) :mode "\\.js\\(?:on\\|[hl]int\\(rc\\)?\\)\\'" - :hook (json-mode-hook . prettier-js-mode) + :hook ((json-mode . prettier-js-mode)) :bind (:package json-mode-map :map json-mode-map ("C-c " . json-mode-beautify))) -- cgit v1.2.3