aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2025-04-23 11:23:02 -0700
committerGravatar Tom Willemse2025-04-23 11:23:02 -0700
commitf8c0b6b3a89cf8078d613bc2b5177d23d644e776 (patch)
treee27912908bc874f608039107d47f56eefb132d65
parentcd1d4493a49b21d9da7cb32c716c6eb43d007f6e (diff)
downloademacs-config-f8c0b6b3a89cf8078d613bc2b5177d23d644e776.tar.gz
emacs-config-f8c0b6b3a89cf8078d613bc2b5177d23d644e776.zip
js: Add prettier for formatting
-rw-r--r--oni-js.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/oni-js.el b/oni-js.el
index 9c07650..9208473 100644
--- a/oni-js.el
+++ b/oni-js.el
@@ -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")