Commit graph

14 commits

Author SHA1 Message Date
Radon Rosborough
923cd12108
[#274] Fix apheleia-formatters-indent logic (#277)
Closes #274
2023-12-30 14:31:06 -07:00
Nolan
2b9e03a7b2
Delete apheleia-formatters-args-from-file (#273)
Remove unused artifact from #224
2023-12-30 14:24:07 -07:00
Nolan
93f7480c96
Add ruby-syntax-tree format support (#224)
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-21 20:34:11 -07:00
Ville Skyttä
022cf17464
Determine indent level from more modes (#258)
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-14 18:47:50 -08:00
Ville Skyttä
41dff902fb
Add support for JSON with python3 -m json.tool (#257)
https://docs.python.org/3/library/json.html#module-json.tool
2023-12-14 18:04:19 -08:00
Ville Skyttä
fe27888c6b
Add perltidy indent level and line length support (#261) 2023-11-29 19:26:19 +00:00
Ville Skyttä
56651724ad
Add support for Robot Framework files with robotidy (#263) 2023-11-28 22:50:25 +00:00
Ville Skyttä
5e894a270b
Changelog and obsoletion marker fixes (#262) 2023-11-28 20:53:53 +00:00
Mohsin Kaleem
01ca22bcd7
Add js-beautify based formatters (#229) 2023-11-26 10:49:21 +00:00
Anders Kaseorg
14e88bfde8
Respect typescript-indent-level, typescript-ts-mode-indent-offset (#252)
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-23 12:28:50 -08:00
Radon Rosborough
0e9a838bdd
Apply some code review suggestions from MELPA (#246)
https://github.com/melpa/melpa/pull/8809#issuecomment-1807218549
2023-11-17 16:17:08 -08:00
Mohsin Kaleem
51b8a796b6
Restructure and refactor apheleia package (#215)
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-17 21:20:38 +01:00
Radon Rosborough
f57d21ef1f
[#208] Allow ignoring Emacs indentation settings (#211)
For
https://github.com/radian-software/apheleia/discussions/208#discussioncomment-7086819
2023-10-12 20:19:14 -07:00
Mohsin Kaleem
2d797a52e6 Move apheleia-formatters to apheleia-utils 2023-04-20 11:24:43 +01:00
Renamed from apheleia-formatters.el (Browse further)