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 extension instruction for Emacs #99

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

jpthiele
Copy link
Contributor

No description provided.

@jpthiele
Copy link
Contributor Author

@j-fu @pjaap FYI

@fredrikekre
Copy link
Owner

fredrikekre commented Nov 12, 2024

and that the alias is set

So Emacs will run the command through a shell where the rc file defining the alias have been loaded?

@jpthiele jpthiele marked this pull request as draft November 12, 2024 10:01
@jpthiele
Copy link
Contributor Author

We realized in testing that that is sadly not the case.
What works is putting a shell script in PATH that can be called. We could add that to the PR if you want.
Might also be useful for others to not use the alias?

@fredrikekre
Copy link
Owner

Looking at https://github.com/radian-software/apheleia/blob/main/apheleia-formatters.el it seems like you can include a more elaborate command (e.g. something similar to

Runic.jl/README.md

Lines 132 to 133 in 6bd8eae

command = "julia",
args = {"--project=@runic", "-e", "using Runic; exit(Runic.main(ARGS))"},
?

@jpthiele
Copy link
Contributor Author

I had tried a few options but the error output always looked the same if I only split part of the command into individual blocks of "<sth>" but splitting it completely worked.

@jpthiele jpthiele marked this pull request as ready for review November 12, 2024 12:37
@jpthiele
Copy link
Contributor Author

And FYI: radian-software/apheleia#331

@fredrikekre
Copy link
Owner

Great, thanks for the contribution!

@fredrikekre fredrikekre merged commit 582cc96 into fredrikekre:master Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants