diff options
| author | 2025-04-23 11:20:00 -0700 | |
|---|---|---|
| committer | 2025-04-23 11:20:00 -0700 | |
| commit | cd1d4493a49b21d9da7cb32c716c6eb43d007f6e (patch) | |
| tree | 2bd67473153704cbfd57887447249a9e003a8ef1 | |
| parent | 13d38d77b8ec74456e30dd51a9823977bc0f2fde (diff) | |
| download | emacs-config-cd1d4493a49b21d9da7cb32c716c6eb43d007f6e.tar.gz emacs-config-cd1d4493a49b21d9da7cb32c716c6eb43d007f6e.zip | |
web: Add prettier for formatting
| -rw-r--r-- | oni-web.el | 7 |
1 files changed, 4 insertions, 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)) |
