web: Add prettier for formatting
This commit is contained in:
parent
13d38d77b8
commit
cd1d4493a4
1 changed files with 4 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue