summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2023-04-19 15:51:24 +0200
committerAlan Pearce2023-04-19 15:57:43 +0200
commit6a65a74b1e877f83d310dbd9f2136b53986fa5e8 (patch)
treec6a2f5df9a7a9c624273d1495deb7012b9051509 /user/emacs
parentabd45c638f30286e19435fa032cca458a9f869da (diff)
downloadnixfiles-6a65a74b1e877f83d310dbd9f2136b53986fa5e8.tar.lz
nixfiles-6a65a74b1e877f83d310dbd9f2136b53986fa5e8.tar.zst
nixfiles-6a65a74b1e877f83d310dbd9f2136b53986fa5e8.zip
emacs: remove go config
The packaging situation in the language has probably changed in the meantime
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el9
1 files changed, 1 insertions, 8 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 5eef7449..369c4f1a 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -716,14 +716,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 
 ;;;; golang
 (use-package go-mode
-  :defer t
-  :config (progn
-            (setq-default gofmt-command "goimports")
-            (add-hook 'go-mode-hook (lambda ()
-                                      (add-hook 'before-save-hook #'gofmt-before-save)
-                                      (if (not (string-match-p "go" compile-command))
-                                          (set (make-local-variable 'compile-command)
-                                               "go build -v && go test && go vet"))))))
+  :defer t)
 
 ;;;; rust
 (use-package rustic