Add golang support

This commit is contained in:
Henrik Lissner 2015-04-30 16:43:44 -04:00
parent b5e784a3b1
commit ea0df90e57
2 changed files with 11 additions and 6 deletions

View file

@ -70,7 +70,7 @@
init-lisp ; all things lisp; elisp, clojure init-lisp ; all things lisp; elisp, clojure
;; init-erlang ;; init-erlang
;; init-eshell ;; init-eshell
;; init-go init-go
init-java ; the poster child for carpal tunnel syndome init-java ; the poster child for carpal tunnel syndome
init-js ; alert("not java, javascript!") init-js ; alert("not java, javascript!")
init-lua ; zero-based indices? Zero-based indices. init-lua ; zero-based indices? Zero-based indices.

View file

@ -1,8 +1,13 @@
;; (use-package go-mode (use-package go-mode
;; :mode "\\.go\\'" :mode "\\.go$"
;; :interpreter "go" :interpreter "go"
;; :init :config
;; (require 'go-autocomplete)) (progn
(bind 'normal go-mode-map "gd" 'godef-jump)
(use-package company-go
:config
(company--backend-on 'go-mode-hook 'company-go 'company-yasnippet))))
(provide 'init-go) (provide 'init-go)