From d4e6da536a59f4140762d1e518b145e49a0c402b Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Tue, 19 Apr 2022 09:47:15 -0700 Subject: emacs: go-mode tweaks --- .emacs.local.d/modes/go-lang.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.emacs.local.d/modes/go-lang.el b/.emacs.local.d/modes/go-lang.el index ad0b307..0554f2b 100644 --- a/.emacs.local.d/modes/go-lang.el +++ b/.emacs.local.d/modes/go-lang.el @@ -7,12 +7,16 @@ (progn (bind-key [remap find-tag] #'godef-jump)) :config + (add-hook 'go-mode-hook #'lsp-go-install-save-hooks) + (add-hook 'go-mode-hook #'lsp-deferred) + (add-hook 'go-mode-hook #'yas-minor-mode) (add-hook 'go-mode-hook 'electric-pair-mode) - (add-hook 'go-mode-hook 'my-go-mode-hook)) + (add-hook 'go-mode-hook 'my-go-mode-hook) + (add-hook 'before-save-hook 'gofmt-before-save) +) (use-package go-eldoc :ensure t - :defer :init (add-hook 'go-mode-hook 'go-eldoc-setup)) -- cgit v1.2.3