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

Allow a formatter rule to override the executable name #246

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

knu
Copy link
Collaborator

@knu knu commented Oct 26, 2023

This introduces a keyword symbol :executable to format-all-formatters.

It solves a typical problem where the predefined formatter is just fine but the executable you want to use instead is installed under the project working directory or elsewhere not necessarily in the default PATH.

e.g.

(setq format-all-formatters
      '(("JavaScript"
         (prettier
          :executable
          "node_modules/.bin/prettier"))))

This introduces a keyword symbol `:executable` to `format-all-formatters`.

e.g.
```elisp
(setq format-all-formatters
      '(("JavaScript"
         (prettier
          :executable
          "node_modules/.bin/prettier"))))
```
@knu knu requested a review from lassik October 26, 2023 05:02
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.

None yet

1 participant