aboutsummaryrefslogtreecommitdiff
path: root/apheleia-formatters.el
diff options
context:
space:
mode:
authorEdmund Miller <20095261+edmundmiller@users.noreply.github.com>2024-10-05 20:42:22 -0500
committerGitHub <noreply@github.com>2024-10-05 18:42:22 -0700
commitd6f520752a77923a420f2ef894a6f2d26d29d7d0 (patch)
tree0c03f67f9937c2d793afb7a902cee659bbec7b5b /apheleia-formatters.el
parentadeaaf714f0efcca335b7afe10c6bee5a0242dfa (diff)
Add snakefmt (#307)
https://github.com/snakemake/snakefmt --------- Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
Diffstat (limited to 'apheleia-formatters.el')
-rw-r--r--apheleia-formatters.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/apheleia-formatters.el b/apheleia-formatters.el
index 77e07ef..d1f3750 100644
--- a/apheleia-formatters.el
+++ b/apheleia-formatters.el
@@ -176,6 +176,9 @@
"--fix" "--fix-only"
"--stdin-filename" filepath
"-"))
+ (snakefmt . ("snakefmt"
+ (apheleia-formatters-fill-column "--line-length")
+ "-"))
(shfmt . ("shfmt"
"-filename" filepath
"-ln" (cl-case (bound-and-true-p sh-shell)
@@ -356,6 +359,7 @@ rather than using this system."
(rustic-mode . rustfmt)
(rust-mode . rustfmt)
(rust-ts-mode . rustfmt)
+ (snakemake-mode . snakefmt)
(scss-mode . prettier-scss)
(sql-mode . pgformatter)
(svelte-mode . prettier-svelte)