   ; Better to install on project basis like this, and then add a config file
   ; npm install --save-dev --save-exact prettier
   ; https://github.com/prettier/prettier
-  :defer t
-  :bind (:map js2-mode-map ("C-c u" . prettier-prettify))
-  )
-
-(use-package json-mode
-  :defer t
-  :mode ("\\.json\\'" . json-mode)
+  ; https://github.com/jscheid/prettier.el
+  :defer t
+  :after web-mode
+  :bind (:map web-mode-map ("C-c u" . prettier-prettify))
   )
 
 (use-package yafolding

  :defer t
  :mode (("\\.djhtml\\'" . web-mode)
	 ("\\.phtml\\'" . web-mode)
	 ("\\.erb\\'" . web-mode)
	 ("\\.php\\'" . web-mode)
	 ("\\.as[cp]x\\'" . web-mode)

  :init
  (add-hook 'sgml-mode-hook 'emmet-mode)
  (add-hook 'css-mode-hook 'emmet-mode)
  )

(use-package yasnippet
