Making the PATH and other environment variables available in emacs

前端 未结 4 1329
误落风尘
误落风尘 2020-12-10 14:30

Working with emacs in OSX can some times be troubling.

I interchange with using the Terminal.app application and the emace shell both of these use bash, and

4条回答
  •  不知归路
    2020-12-10 14:49

    Just install the awesome little package exec-path-from-shell and you're done! It will automatically set your emacs exec-path to be same as the PATH in your zsh/bash config.

    It will also allow you to copy the values of other shell variables like this:

    (exec-path-from-shell-copy-env "PYTHONPATH")
    

提交回复
热议问题