blob: 905a12faae6d0b7f58930947a818d4d591596484 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
(use-package go-mode
:ensure t
:after (exec-path-from-shell flycheck flyspell)
:hook (go-mode . fcuny/go-mode-setup)
:init
(defun fcuny/go-mode-setup ()
(setq tab-width 4)
(add-hook 'before-save-hook 'gofmt-before-save))
:config
(when (memq window-system '(mac ns))
(exec-path-from-shell-copy-env "GOPATH")))
(provide 'fcuny-go)
|