From 7bf6e03ce0090bb9258416feab3a63137ef9f2bf Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 22 Mar 2022 17:56:12 -0700 Subject: prog: format go buffer before saving --- emacs/custom/fcuny-prog.el | 1 + 1 file changed, 1 insertion(+) 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)) -- cgit 1.4.1