From f8c0b6b3a89cf8078d613bc2b5177d23d644e776 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 23 Apr 2025 11:23:02 -0700 Subject: js: Add prettier for formatting --- oni-js.el | 5 +++-- 1 file 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 ;; 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") -- cgit v1.3-2-g0d8e