aboutsummaryrefslogtreecommitdiff
path: root/apheleia-utils.el
AgeCommit message (Collapse)Author
2025-08-07add `js-json-mode` to `apheleia-formatters-indent` (#375)gkowzan
Add `js-json-mode` to `apheleia-formatters-indent` with the same behavior as `json-mode`.
2025-07-18add yaml-ts-mode to aphelia-formatters-indent (#370)James Ferguson
Trivial change - other modes include `-ts-mode` variants, but not yaml. This fix is confirmed to work for me, taking the indent level from `yaml-indent-offset`. --------- Co-authored-by: James Ferguson <james@faff.org>
2024-09-02Fix `apheleia-npx` in Yarn PnP projects (#301)Xandor Schiefer
* `apheleia-npx` would use an incorrect path for the Yarn PnP ESM loader. * `apheleia-npx` did not correctly guard against word splitting. * `apheleia-npx` was sometimes not able to find formatters in a Yarn PnP project if there was also a node_modules folder at the root of the project. Unfortunately, many tools (including [Prettier](https://github.com/prettier/prettier/issues/13032)) will create a cache folder in `node_modules` even in Yarn PnP projects. The presence of any `node_modules` folders are irrelevant when a `.pnp.cjs` file is present. --------- Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
2023-12-30[#274] Fix apheleia-formatters-indent logic (#277)Radon Rosborough
Closes #274
2023-12-30Delete apheleia-formatters-args-from-file (#273)Nolan
Remove unused artifact from #224
2023-12-21Add ruby-syntax-tree format support (#224)Nolan
Add [ruby-syntax-tree](https://github.com/ruby-syntax-tree/syntax_tree) as an available formatter. Include support for finding a [`.streerc` file](https://github.com/ruby-syntax-tree/syntax_tree#configuration). --------- Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
2023-12-14Determine indent level from more modes (#258)Ville Skyttä
Pass CSS, GraphQL, HTML, Ruby, Svelte, and YAML mode indent setting to formatters that make use of it through `apheleia-formatters-js-indent`. `prettier-markdown` and `prettier-scss` attempt to make use of this too, but `markdown-mode` and `scss-mode` don't have such a setting that I can tell. Left the uses in place for `indent-tabs-mode` support anyway. BTW the `apheleia-formatters-js-indent` name and its description does not seem quite spot on, as it was already being (partially unsuccessfully) (ab?)used by some modes for which "JavaScript like"ness is a bit of a stretch :) Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
2023-12-14Add support for JSON with `python3 -m json.tool` (#257)Ville Skyttä
https://docs.python.org/3/library/json.html#module-json.tool
2023-11-29Add `perltidy` indent level and line length support (#261)Ville Skyttä
2023-11-28Add support for Robot Framework files with `robotidy` (#263)Ville Skyttä
2023-11-28Changelog and obsoletion marker fixes (#262)Ville Skyttä
2023-11-26Add js-beautify based formatters (#229)Mohsin Kaleem
2023-11-23Respect `typescript-indent-level`, `typescript-ts-mode-indent-offset` (#252)Anders Kaseorg
https://github.com/emacs-typescript/typescript.el/blob/v0.4/typescript-mode.el#L635-L639 https://github.com/emacs-mirror/emacs/blob/emacs-29.1/lisp/progmodes/typescript-ts-mode.el#L38-L43 --------- Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2023-11-17Apply some code review suggestions from MELPA (#246)Radon Rosborough
https://github.com/melpa/melpa/pull/8809#issuecomment-1807218549
2023-10-17Restructure and refactor apheleia package (#215)Mohsin Kaleem
CLOSES #212 PR to restructure apheleia to make it more modular and improve some of the separation of concerns. Before merging we should make sure that we don't reintroduce the issues from #181.
2023-10-12[#208] Allow ignoring Emacs indentation settings (#211)Radon Rosborough
For https://github.com/radian-software/apheleia/discussions/208#discussioncomment-7086819
2023-04-20Move apheleia-formatters to apheleia-utilsMohsin Kaleem