Is there a command which I could bind to F1 in Emacs that would give me (in a temporary or persistent buffer) contextual documentation on the "symbol" under point?
IIUC, that'd give the same results as:
C-c C-v RET in ESS buffers (=
ess-display-help-on-object
)C-h f/C-h v RET in Emacs Lisp buffers (=
describe-function
/describe-variable
)C-h S in Shell buffers (=
info-lookup-symbol
) + M-xman-follow
??? in AWK, C, Java
??? in AUCTeX buffers (well, that may be a big dream ;-))
- ...
Somehow, Auto-Complete does that job (at least in ESS and Emacs Lisp buffers), as it displays the right help (on functions, on variables, etc.) in its "quick help" tooltip. Though, it's only displayed during the completion process, not after.
I first thought that info-lookup-symbol
would be (part of) the solution, but it
does NOT work in ESS, so it's pretty limited...
What should I bind to F1, then?