I have a question regarding the use of M-x man in Emacs. I'm working with Tramp all the time and often the installed program base on the remote server differs significantly from my local setup. I see that invoking M-x man involves looking for the relevant manpages on the local machine. Is there a way to instruct it to use the environment on the other side of Tramp?
I know there's an Elisp variable tramp-remote-process-environment
and I've tried adding an entry for MANPATH
to it, but it doesn't seem to work (I'm afraid it's because I put it in the form /usr/share/man
instead of /scpc:user@host:/usr/share/man
but what I want is a generic solution to work on all remote hosts). Any ideas?