summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-09 19:37:10 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-09 19:37:10 +0200
commit6153e9f7c4545be095383f1b91b0084fc2fa7211 (patch)
tree850d705546f617c3eb9377b4b03f25a6d1e422bc
parent034fd21093b8f10bf4808c48d02d3836da897465 (diff)
Set makeprg for mfmt
-rw-r--r--.exrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.exrc b/.exrc
index 7d08655..09b751a 100644
--- a/.exrc
+++ b/.exrc
@@ -11,6 +11,7 @@ function s:SaveExcursion(cmd)
endfunction
autocmd BufNewFile,BufRead */data/mintages/* setfiletype mintage
+autocmd BufNewFile,BufRead */cmd/mfmt/* setlocal makeprg=go\ build\ ./cmd/mfmt
autocmd FileType go autocmd BufWritePre <buffer>
\ call s:SaveExcursion("gofmt -s")