Making the PATH and other environment variables available in emacs

前端 未结 4 1323
误落风尘
误落风尘 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 15:11

    Open Emacs.app from within Terminal.app (instead of from Finder):

    $ emacs
    

    This works for me using Emacs from Homebrew with Cocoa (brew install emacs --with-cocoa). It launches Emacs.app in a Cocoa GUI window (use emacs -nw to fallback to terminal UI). All the environment variables I have set in my bash environment appeared to be set in Emacs.

    I have not tried this with Emacsformacosx. I personally prefer Emacs from Homebrew as I heard Emacsformacosx is not compiled with certain extensions I use such as TLS and Imagemagick... you can compile Emacs with those extensions using brew install emacs --with-XXX.

提交回复
热议问题