3

I have been using gocode with emacs and it gives completions of functions. Is there any way to get emacs to show the documentation of those functions in a pop up too. I am using auto-complete with go-mode.

enitihas
  • 131
  • 1
  • `go-mode` has `godoc-at-point`, but I'm not sure you can integrate it into auto-complete mode (I'm not doubtful, I simply don't know). – wvxvw Mar 19 '16 at 14:41

2 Answers2

2

If you use Icicles then you can use C-M-RET (or C-M-mouse-2) to see the full doc string (in *Help*) of any completion candidates. You can use the arrow keys C-M-down and C-M-up to cycle among candidates, showing their doc the same way.

Also, the first line of the doc string is shown in the mode-line, so just cycling among candidates using down etc. shows you that much, at least. (Dunno whether using auto-complete-mode at the same time as Icicles is a problem or is useful.)

See Icicles - Get Help on Completion Candidates.

Drew
  • 75,699
  • 9
  • 109
  • 225
1

If you use company-mode (which is preferred by most over autocomplete these days), try company-quickhelp.

Tianxiang Xiong
  • 3,848
  • 16
  • 27