summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-07-24 20:03:32 -0700
committerFranck Cuny <franckcuny@gmail.com>2016-07-24 20:03:32 -0700
commitf8f2ecc2d62859cc8996524a8f0a5e488ce41ab6 (patch)
tree693400fc22ee74048f773071a63d200ab4abb72f
parent[emacs] Bindings to quickly move between buffers (diff)
downloademacs.d-f8f2ecc2d62859cc8996524a8f0a5e488ce41ab6.tar.gz
[emacs] Cleanup go's configuration
Use go-eldoc to get documentation, and remove some bindings.
-rw-r--r--emacs.d/init.el11
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"))