Also copy $MANPATH from shell in exec-path-from-shell-initialize. Avoids mismatches between manpages shown with M-x man and the actual behaviour of the program.
This pull request also comprises some minor improvements, and adds a readme. The latter doesn't really belong here, but admittedly I was too lazy to open two pull requests :)
Copy $MANPATH on initialization, too
Add a readme
Nice -- merged!
Thanks for that, particularly the README. Sooner or later I want to start using org-readme to generate these automatically, but I haven't got around to it yet.
I'll probably remove the hard-coded MANPATH and instead add a custom var which is a list of extra env vars to copy at initialization time -- the default value would be '("MANPATH").
Make the list of copied variables customizable. (See #2)