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 custom commands for running ocamlformat #2577

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

Conversation

gridbugs
Copy link

Currently it's possible to customize the path or name of the ocamlformat executable that gets run by the emacs ocamlformat package. However sometimes it's desirable to run ocamlformat by running a multi-word command, such as opam exec ocamlformat --. This change adds support running coamlformat with custom multi-word commands by allowing the ocamlformat-command variable to be set to a list of strings.

Currently it's possible to customize the path or name of the
ocamlformat executable that gets run by the emacs ocamlformat
package. However sometimes it's desirable to run ocamlformat by
running a multi-word command, such as `opam exec ocamlformat --`. This
change adds support running coamlformat with custom multi-word
commands by allowing the `ocamlformat-command` variable to be set to a
list of strings.

Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
@gridbugs
Copy link
Author

The context for this PR is that I'm in the process of adding a feature to dune that will download, build, and then run ocamlformat from a single dune command. I've been testing the command in different editors and this patch is necessary in order to use this feature in emacs.

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.

1 participant