branch: elpa/exec-path-from-shell
commit 0b81e0bf057b51dfc731adf04fd697c927c7c45e
Author: Sebastian Wiesner <[email protected]>
Commit: Sebastian Wiesner <[email protected]>

    Copy $MANPATH on initialization, too
---
 exec-path-from-shell.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/exec-path-from-shell.el b/exec-path-from-shell.el
index d8082abd12..99567a2693 100644
--- a/exec-path-from-shell.el
+++ b/exec-path-from-shell.el
@@ -77,8 +77,12 @@ Return the value of the environment variable."
 
 ;;;###autoload
 (defun exec-path-from-shell-initialize ()
-  "Set $PATH and `exec-path' from the user's shell."
+  "Initialize environment from the user's shell.
+
+Set $MANPATH, $PATH and `exec-path' from the corresponding
+variables in the user's shell."
   (interactive)
+  (exec-path-from-shell-copy-env "MANPATH")
   (setq exec-path (split-string (exec-path-from-shell-copy-env "PATH")
                                 path-separator)))
 

Reply via email to