Add golang support
This commit is contained in:
parent
b5e784a3b1
commit
ea0df90e57
2 changed files with 11 additions and 6 deletions
2
init.el
2
init.el
|
@ -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.
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue