diff options
author | Franck Cuny <franckcuny@gmail.com> | 2016-07-24 20:03:32 -0700 |
---|---|---|
committer | Franck Cuny <franckcuny@gmail.com> | 2016-07-24 20:03:32 -0700 |
commit | f8f2ecc2d62859cc8996524a8f0a5e488ce41ab6 (patch) | |
tree | 693400fc22ee74048f773071a63d200ab4abb72f | |
parent | [emacs] Bindings to quickly move between buffers (diff) | |
download | emacs.d-f8f2ecc2d62859cc8996524a8f0a5e488ce41ab6.tar.gz |
[emacs] Cleanup go's configuration
Use go-eldoc to get documentation, and remove some bindings.
Diffstat (limited to '')
-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")) |