Bind the following function to a shortcut. Keep in mind that for work you will need both autocomplete and a pop-up window (complete with autocomplete in old versions and separate in new ones).
(defun popup-documentation-at-point () (interactive) (let* ((position (point)) (string-under-cursor (buffer-substring-no-properties (progn (skip-syntax-backward "w_") (point)) (progn (skip-syntax-forward "w_") (point))))) (goto-char position) (popup-tip (ac-symbol-documentation (intern string-under-cursor)))))
source share