1
0
Fork 0

web: Add prettier for formatting

This commit is contained in:
Tom Willemse 2025-04-23 11:20:00 -07:00
parent 13d38d77b8
commit cd1d4493a4

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2021.1123.002232
;; Package-Requires: (web-mode oni-flycheck)
;; Version: 2025.0423.111145
;; Package-Requires: (web-mode oni-flycheck prettier-js)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@ -46,10 +46,11 @@
(setq web-mode-css-indent-offset 2)
(setq web-mode-css-indent-offset 2)
(add-hook 'web-mode-hook #'oni-web--whitespace-mode)
(add-hook 'web-mode-hook 'electric-pair-local-mode)
(add-hook 'web-mode-hook 'flycheck-mode)
(add-hook 'web-mode-hook #'oni-web--whitespace-mode)
(add-hook 'web-mode-hook 'oni-web--auto-fill-mode)
(add-hook 'web-mode-hook 'prettier-js-mode)
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.blade\\.php\\'" . web-mode))