aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-01-15 20:44:54 -0500
committerJesús <heckyel@hyperbola.info>2022-01-15 20:44:54 -0500
commit91b3c8d6b83aca01e7f59e5b1ea7c111323ee50c (patch)
treeb340991cca4871b175076d0bfe6acdb27deb4e45 /modules
parent2cf8a7d6a6bd679fa30a6abeda2fd921e5528969 (diff)
downloademacs-personal-91b3c8d6b83aca01e7f59e5b1ea7c111323ee50c.tar.lz
emacs-personal-91b3c8d6b83aca01e7f59e5b1ea7c111323ee50c.tar.xz
emacs-personal-91b3c8d6b83aca01e7f59e5b1ea7c111323ee50c.zip
Add missing prettier-js package
Diffstat (limited to 'modules')
-rw-r--r--modules/init-js-two.el5
1 files changed, 4 insertions, 1 deletions
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 <tab>" . json-mode-beautify)))