From 5ff9fbd0afdd0cef491a5127967798da1a341b05 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 12 Jun 2019 16:16:27 -0700 Subject: [emacs] Trying to fix my go setup There's a bunch of binaries that are completely out dated, and this is causing a lot of stuff to fail with emacs. --- Makefile | 8 ++++++++ emacs.d/custom/fcuny-go.el | 2 ++ 2 files changed, 10 insertions(+) diff --git a/Makefile b/Makefile index a2dcf1b..5d33474 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,14 @@ $(HOME)/Documents/screenshots: osx: @./scripts/osx.sh +.PHONY: go-setup +go-setup: + @go get -u github.com/kisielk/errcheck + @go get -u github.com/rogpeppe/godef + @go get -u github.com/zmb3/gogetdoc + @go get -u golang.org/x/tools/cmd/goimports + @go get -u golang.org/x/tools/cmd/guru + .PHONY: git git: @git config --local user.email "franck.cuny@gmail.com" diff --git a/emacs.d/custom/fcuny-go.el b/emacs.d/custom/fcuny-go.el index b7a7d1b..75bd042 100644 --- a/emacs.d/custom/fcuny-go.el +++ b/emacs.d/custom/fcuny-go.el @@ -8,6 +8,8 @@ ("M-*" . pop-tag-mark)) :custom (godoc-use-completing-read t) + ;; see https://github.com/dominikh/go-mode.el/issues/262 + (godoc-at-point-function 'godoc-gogetdoc) :init (defun fcuny/go-mode-setup () (setq tab-width 4) -- cgit 1.4.1