diff options
author | Raul Benencia <rul@kalgan.cc> | 2022-04-19 09:47:15 -0700 |
---|---|---|
committer | Raul Benencia <rul@kalgan.cc> | 2022-04-19 09:47:15 -0700 |
commit | d4e6da536a59f4140762d1e518b145e49a0c402b (patch) | |
tree | 1394628ab1963a3a7bed58ff8567103495cbaa72 /.emacs.local.d/modes/go-lang.el | |
parent | 45fd3c49465e5b83a5cba443c17e743f61881a66 (diff) |
emacs: go-mode tweaks
Diffstat (limited to '.emacs.local.d/modes/go-lang.el')
-rw-r--r-- | .emacs.local.d/modes/go-lang.el | 8 |
1 files 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)) |