changeset 323:aa5afa13e12c

emacs: add go-eldoc for better go programming
author Augie Fackler <raf@durin42.com>
date Thu, 11 Jul 2013 09:16:09 -0500 (2013-07-11)
parents a7f5b0526a51
children 231aef6069cc
files .elisp/settings/00.bootstrap.el .elisp/settings/80.go.el
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/settings/00.bootstrap.el
+++ b/.elisp/settings/00.bootstrap.el
@@ -6,6 +6,7 @@
 
 (setq package-archives '(("durin42" . "http://durin42.com/elpa/")
                          ("marmalade" . "http://marmalade-repo.org/packages/")
+                         ("melpa" . "http://melpa.milkbox.net/packages/")
                          ("elpa" . "http://tromey.com/elpa/")))
 
 (defun af-bootstrap-packages ()
@@ -28,6 +29,11 @@
                   yaml-mode
                   company
                   wgrep
+                  ;; for go-eldoc
+                  popup
+                  auto-complete
+                  go-autocomplete
+                  go-eldoc
                   ))
     (unless (or (member pack package-activated-list)
                 (functionp pack))
--- a/.elisp/settings/80.go.el
+++ b/.elisp/settings/80.go.el
@@ -30,7 +30,8 @@
         (message "Go is installed, loading go-mode")
         (add-to-list 'load-path goloc)
         (require 'go-mode)
-        (add-hook 'go-mode-hook          'af-go-hook)
+        (add-hook 'go-mode-hook 'af-go-hook)
+        (add-hook 'go-mode-hook 'go-eldoc-setup)
         (let* ((loc (af-get-gocode-elisp-location))
                (el (concat loc "/company-go.el")))
           (if (file-exists-p el)