diff options
| author | 2025-04-23 11:23:02 -0700 | |
|---|---|---|
| committer | 2025-04-23 11:23:02 -0700 | |
| commit | f8c0b6b3a89cf8078d613bc2b5177d23d644e776 (patch) | |
| tree | e27912908bc874f608039107d47f56eefb132d65 | |
| parent | cd1d4493a49b21d9da7cb32c716c6eb43d007f6e (diff) | |
| download | emacs-config-f8c0b6b3a89cf8078d613bc2b5177d23d644e776.tar.gz emacs-config-f8c0b6b3a89cf8078d613bc2b5177d23d644e776.zip | |
js: Add prettier for formatting
| -rw-r--r-- | oni-js.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,8 +4,8 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2025.0124.135906 -;; Package-Requires: (oni-company js2-mode js2-refactor oni-flycheck fic-mode rjsx-mode) +;; Version: 2025.0423.111220 +;; Package-Requires: (oni-company js2-mode js2-refactor oni-flycheck fic-mode rjsx-mode 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 @@ -64,6 +64,7 @@ (add-hook 'js2-mode-hook 'js2-refactor-mode) (add-hook 'js2-mode-hook 'oni-js--auto-fill-mode) (add-hook 'js2-mode-hook 'oni-js-whitespace-mode) +(add-hook 'js2-mode-hook 'prettier-js-mode) (add-hook 'js2-mode-hook 'subword-mode) (js2r-add-keybindings-with-prefix "C-c r") |
