![](/style/images/good.png)
![](/style/images/bad.png)
Github GitHub - emacsorphanage/go-eldoc: eldoc for go language
source link: https://github.com/emacsorphanage/go-eldoc
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
go-eldoc.el
Introduction
go-eldoc.el
provides eldoc for Go language. go-eldoc.el
shows type information
for variable, functions and current argument position of function.
Screenshot
Argument Type of Function
Variable Type Information
Return Value Type
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.
go-eldoc-gocode-args
(Default: nil
)
Arguments of gocode
command. Type of this variable is list of strings.
Recommend
-
51
-
66
-
34
README.md Unmaintained I never used this package myself and no longer want to maintain it. I might still fix bugs but all feature requests will be clos...
-
6
helm-ag.el Introduction helm-ag.el provides interfaces of The Silver Searcher with helm. Features Support multiple search tools(ag...
-
8
cpp-auto-include.el Insert and delete C++ header files automatically. Screencast Introduction This package is Emacs port of Vim's cpp-auto-include
-
5
quickrun.el Introduction quickrun.el is Emacs port of quickrun.vim. quickrun.el is a extension to execute editing buffer. qui...
-
8
git-gutter-fringe.el Introduction git-gutter-fringe.el is fringe version of of git-gutter.el. git-gutter.el does not work with l...
-
8
ov.el Simple way to manipulate overlay for Emacs. Overlay is capable of manipulating text appearance, cursor behavior, etc. It doesn't affect font-lock or text-properties. Command You can always do M-x...
-
4
Latest commit Files Permalink
-
4
irony-eldoc - irony-mode support for eldoc-mode This implements eldoc support in irony-mode. eldoc is a built-in Emacs mode for displaying documentation about a symbol or function call at point in the message buffer (see eldoc...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK