summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-03-22 17:56:12 -0700
committerFranck Cuny <franck@fcuny.net>2022-03-22 17:56:12 -0700
commit7bf6e03ce0090bb9258416feab3a63137ef9f2bf (patch)
tree272c37e6e4213e0d0767d59b84033508de86e3a7 /emacs
parentcommands: start refactoring (diff)
downloademacs.d-7bf6e03ce0090bb9258416feab3a63137ef9f2bf.tar.gz
prog: format go buffer before saving
Diffstat (limited to '')
-rw-r--r--emacs/custom/fcuny-prog.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/custom/fcuny-prog.el b/emacs/custom/fcuny-prog.el
index 6246863..2c4635e 100644
--- a/emacs/custom/fcuny-prog.el
+++ b/emacs/custom/fcuny-prog.el
@@ -109,6 +109,7 @@
 (use-package go-mode
   :after (eglot)
   :ensure t
+  :hook ((before-save . gofmt-before-save))
   :custom
   (tab-width 4))