diff options
-rw-r--r-- | emacs.d/init.el | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el index c6fae47..458025d 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -251,19 +251,12 @@ Return the new window for BUFFER." (exec-path-from-shell-copy-env var)))) (require 'go-mode) +(require 'go-eldoc) + (add-hook 'go-mode-hook (lambda () (go-eldoc-setup) (add-hook 'before-save-hook 'gofmt-before-save))) - ;; (bind-key "C-c C-f" 'gofmt go-mode-map) - ;; (bind-key "C-c h" 'godoc go-mode-map) - - ;; (bind-key "C-c C-g" 'go-goto-imports go-mode-map) - ;; (bind-key "C-c C-r" 'go-remove-unused-imports go-mode-map)) - -(require 'go-eldoc) -(add-hook 'go-mode-hook 'go-eldoc-setup) - ;; configuration for markdown (require 'markdown-mode) (let ((preferred-markdown-impl "peg-markdown")) |