Yorgos Pagles avatar Yorgos Pagles committed 665d3f1

Support for golang autocompletion

Comments (0)

Files changed (1)

 (push "/usr/local/bin" exec-path)
 (push "/usr/local/share/python" exec-path)
+(push "/usr/local/Cellar/go/1.0.3/bin" exec-path)
+(setenv "GOROOT" "/usr/local/Cellar/go/1.0.3")
 (setq make-backup-files nil)
 (setq auto-save-default nil)
 (setq uniquify-buffer-name-style 'forward)
 (add-to-list 'load-path "~/.emacs.d/el-get/el-get")
+(add-to-list 'load-path "~/.emacs.d/custom")
 (unless (require 'el-get nil t)
         (:name popup
                :type git
                :url "https://github.com/auto-complete/popup-el.git")
+        (:name auto-complete-golang
+               :type git
+               :url "git://github.com/koko1000ban/auto-complete-golang.git")
         (:name js2-mode
                :type git
                :url "http://github.com/mooz/js2-mode.git")))
 (add-hook 'python-mode-hook
           (lambda ()
             (add-to-list 'ac-sources 'ac-source-ropemacs)))
+; You need gocode for this to work
+; Check https://github.com/nsf/gocode
+(require 'go-autocomplete)
 ; Magit
 (global-set-key (kbd "C-x g") 'magit-status)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.