Skip to content

Conversation

@tmuehlbacher
Copy link

Also enable flag to use editorconfig by default, this is often already implied by other formatters.

format-all.el Outdated
(:install "pip install meson")
(:languages "Meson")
(:features)
(:format (format-all--buffer-easy executable "fmt" "--editor-config" "-")))
Copy link
Collaborator

Choose a reason for hiding this comment

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

fmt is fine, but format seems to be the canonical name you can easily search for. (Google did not give good results 🥲)
https://mesonbuild.com/Commands.html#format

Also enable flag to use editorconfig by default, this is often already
implied by other formatters.
@JuanGarcia345
Copy link

Hello there,
What do you think about the (formatter) working directory? A formatter definition such as:

(define-format-all-formatter meson-fmt
    (:executable "meson")
    (:install (macos "pip install meson"))
    (:languages "Meson")
    (:features)
    (:format
     (format-all--buffer-hard nil nil '("meson.format" ".editorconfig") executable  '("fmt" "--editor-config" "-"))))

may handle that, isn't it?

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.

3 participants