Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for treefmt #280

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Conversation

terlar
Copy link
Contributor

@terlar terlar commented Jan 8, 2024

This formatter is formatting via treefmt. This is useful if the project is configuring formatters for the project and you don't have to replicate this logic within Emacs, but instead utilize treefmt directly.

To do that you can set the apheleia-formatter to treefmt within the projects .dir-locals.el.

I noticed there are tests for this, since treefmt could technically format anything, I went with treefmt formatting rust code. It also relies on having a treefmt.toml in the project folder, so had to add that as well in the tests.

@terlar terlar force-pushed the add-treefmt branch 8 times, most recently from fa1e871 to c3175ab Compare January 8, 2024 22:57
Copy link
Member

@raxod502 raxod502 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raxod502 raxod502 merged commit 1d6f821 into radian-software:main Jan 12, 2024
4 checks passed
@terlar terlar deleted the add-treefmt branch January 12, 2024 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants