common/home-manager/emacs: gofmt-before-save

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Cadey Ratio 2023-02-05 08:57:43 -05:00
parent 709a618a2d
commit e4c645f5f8
1 changed files with 1 additions and 0 deletions

View File

@ -483,6 +483,7 @@ in {
enable = true;
config = ''
(setq gofmt-command "goimports")
(add-hook 'before-save-hook #'gofmt-before-save)
'';
};