77QH2VAN2U4ZU64XMKKMH5L6LPV3SSYSFOTPMHYG3Q6N5YI5SQSAC (defun set-exec-path-from-shell-PATH ()"Set up Emacs' `exec-path' and PATH environment variable to match that used by the user's shell.This is particularly useful under Mac OSX, where GUI apps are not started from a shell."(interactive)(let ((path-from-shell (replace-regexp-in-string "[ \t\n]*$" "" (shell-command-to-string "$SHELL --login -i -c 'echo $PATH'"))))(setenv "PATH" path-from-shell)(setq exec-path (split-string path-from-shell path-separator))))(set-exec-path-from-shell-PATH)