Skip to content

jzt/emacs-go-eldoc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-eldoc.el travis badge melpa badge melpa stable badge

Introduction

go-eldoc.el provides eldoc for Go language. go-eldoc.el shows type information for variable, functions and current position of function.

Screenshot

Argument Type of Function

go-eldoc1

Variable Type Information

go-eldoc2

Return Value Type

go-eldoc3

Dependency

You can install go-mode with package.el from MELPA. And you can install gocode by go get as below.

% go get -u github.com/nsf/gocode

Installation

You can install go-eldoc.el from MELPA with package.el.

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)
(package-refresh-contents)

evaluate this code and M-x package-install go-eldoc.

Setup

Call go-eldoc-setup function at go-mode-hook

(require 'go-eldoc) ;; Don't need to require, if you install by package.el
(add-hook 'go-mode-hook 'go-eldoc-setup)

Customize

You can change face of current argument position by eldoc-highlight-function-argument like this.

(set-face-attribute 'eldoc-highlight-function-argument nil
                    :underline t :foreground "green"
                    :weight 'bold)

go-eldoc-gocode(Default: gocode)

gocode location. You need not to set this variable if you set ($GOPATH/bin) to PATH environment variable correctly.

About

eldoc for go language

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Emacs Lisp 98.0%
  • Makefile 2.0%