(defun set-exec-path-from-shell-PATH ()
  (let ((path-from-shell (string-rtrim (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))))

(when *is-a-mac*
  (eval-after-load "woman"
    '(setq woman-manpath (append (list "/opt/local/man") woman-manpath)))

  ;; When started from Emacs.app or similar, ensure $PATH
  ;; is the same the user would see in Terminal.app
  (if window-system (set-exec-path-from-shell-PATH)))


(provide 'init-exec-path)

(defun set-exec-path-from-shell-PATH ()
  (let ((path-from-shell (string-rtrim (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))))

(when *is-a-mac*
  ;; When started from Emacs.app or similar, ensure $PATH
  ;; is the same the user would see in Terminal.app
  (if window-system (set-exec-path-from-shell-PATH)))


(provide 'init-exec-path)

Remove defunct setting of man path for 'woman
Remove defunct setting of man path for 'woman

ernest-dzf/emacs.d,me020523/emacs.d,zuoshifan/emacs.d,jhpx/emacs.d,zuoshifan/emacs.d,farzadbekran/emacs.d,wenpincui/emacs.d,boblannon/emacs.d,hophacker/emacs.d,zenith-john/emacs.d,lust4life/emacs.d,modkzs/emcs.d,zuoshifan/emacs.d,zhuoyikang/emacs.d,dongdonghu/.emacs.d,baohaojun/emacs.d,qinshulei/emacs.d,farzadbekran/emacs.d,cjqw/emacs.d,LKI/emacs.d,farzadbekran/emacs.d,arthurl/emacs.d,carlosliu/emacs.d,shafayetkhan/emacs.d,Shanicky/emacs.d,jkaessens/emacs.d,zuoshifan/emacs.d,farzadbekran/emacs.d,Togal/emacs.d,jthetzel/emacs.d,YangXin/emacs.d,emuio/emacs.d,renatoriccio/emacs.d,Enzo-Liu/emacs.d,zuoshifan/emacs.d,DarkThrone/emacs.d,roxolan/emacs.d,svenyurgensson/emacs.d,lujianmei/emacs.d,zuoshifan/emacs.d,scorpionis/emacs.d,cyjia/emacs.d,zuoshifan/emacs.d,blueseason/emacs.d,Jadecity/PurcellEmacs.d,Werewolflsp/emacs.d,pairyo/emacs.d,ruiyang/emacs.d,haodaivshen/emacs.d,hkcqr/emacs.d,purcell/emacs.d,braveoyster/emacs.d,ilove0518/emacs.d,mmqmzk/emacs.d,zuoshifan/emacs.d,zuoshifan/emacs.d,caoyuanqi/emacs.d,ruiyang/emacs.d,lromang/emacs.d,kongfy/emacs.d,bibaijin/emacs.d,blueabysm/emacs.d,jachinpy/emacs.d,farzadbekran/emacs.d,dcorking/emacs.d,zhaotai/.emacs.d,exclamaforte/emacs.d,jachinpy/emacs.d,atreeyang/emacs.d,kindoblue/emacs.d,Guoozz/emacs.d,YangXin/emacs.d,gsmlg/emacs.d,danfengcao/emacs.d,46do14/emacs.d,benkha/emacs.d,mpwang/emacs.d,dhanunjaya/emacs.d,wegatron/emacs.d,LittleLmp/emacs.d,qianwan/emacs.d,alant/emacs.d,whizzzkid/emacs.d,fengxl/emacs.d,krzysz00/emacs.d,sgarciac/emacs.d