From ea0df90e57063a663bf8c756a129168310caac26 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 30 Apr 2015 16:43:44 -0400 Subject: [PATCH] Add golang support --- init.el | 2 +- init/init-go.el | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/init.el b/init.el index a49f33a74..f3a43d74a 100644 --- a/init.el +++ b/init.el @@ -70,7 +70,7 @@ init-lisp ; all things lisp; elisp, clojure ;; init-erlang ;; init-eshell - ;; init-go + init-go init-java ; the poster child for carpal tunnel syndome init-js ; alert("not java, javascript!") init-lua ; zero-based indices? Zero-based indices. diff --git a/init/init-go.el b/init/init-go.el index 1fade870e..f940da5c7 100644 --- a/init/init-go.el +++ b/init/init-go.el @@ -1,8 +1,13 @@ -;; (use-package go-mode -;; :mode "\\.go\\'" -;; :interpreter "go" -;; :init -;; (require 'go-autocomplete)) +(use-package go-mode + :mode "\\.go$" + :interpreter "go" + :config + (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)