From a923725f6da0ce55e03f1e98362a9423e91a67e6 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 27 Nov 2020 12:18:23 -0600 Subject: Add before-save-hook to golang section --- config.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 4acf2ca..b2617dd 100644 --- a/config.org +++ b/config.org @@ -1045,7 +1045,9 @@ from [[https://github.com/alphapapa/unpackaged.el#org-return-dwim][unpackaged.el #+begin_src emacs-lisp (use-package go-mode - :mode "\\.go\\'") + :mode "\\.go\\'" + :hook + (before-save . gofmt-before-save)) #+end_src * Applications -- cgit 1.4.1-21-gabe81