From 5ebd6bf5819fbf2adfa18162f270825e6ca4379c Mon Sep 17 00:00:00 2001 From: Daniel Perez Alvarez Date: Sat, 24 Dec 2022 12:04:22 -0500 Subject: [PATCH] Add support for tsx-ts-mode (#148) * feat: add support for new tsx-ts-mode in emacs 29 from emacs docs: > tsx-ts-mode is an autoloaded, interactive and natively compiled function defined in typescript-ts-mode.el.gz. Signature (tsx-ts-mode) Documentation Major mode for editing TypeScript. In addition to any hooks its parent mode typescript-ts-base-mode might have run, this mode runs the hook tsx-ts-mode-hook, as the final or penultimate step during initialization. * update changelog * Fix broken link in changelog Co-authored-by: Radon Rosborough --- CHANGELOG.md | 3 ++- apheleia.el | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95a6bd1..4ab6c5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ The format is based on [Keep a Changelog]. ### Enhancements * Emacs 29's tree-sitter-based major modes have been added to - `apheleia-mode-alist` ([#145]). + `apheleia-mode-alist` ([#145], [#148]). ### Bugs fixed * If a formatter exited with a zero exit code when being killed by a @@ -40,6 +40,7 @@ The format is based on [Keep a Changelog]. [#143]: https://github.com/radian-software/apheleia/pull/143 [#145]: https://github.com/radian-software/apheleia/pull/145 [#147]: https://github.com/radian-software/apheleia/pull/147 +[#148]: https://github.com/radian-software/apheleia/pull/148 ## 3.1 (released 2022-11-11) ### Enhancements diff --git a/apheleia.el b/apheleia.el index 076438c..438cef3 100644 --- a/apheleia.el +++ b/apheleia.el @@ -1167,6 +1167,7 @@ function: %s" command))) (terraform-mode . terraform) (TeX-latex-mode . latexindent) (TeX-mode . latexindent) + (tsx-ts-mode . prettier-typescript) (tuareg-mode . ocamlformat) (typescript-mode . prettier-typescript) (typescript-ts-mode . prettier-typescript)