Open Emacs.app from Terminal.app (instead of Finder):
$ emacs
This works for me using Emacs from Homebrew with Cocoa ( brew install emacs --with-cocoa ). It launches Emacs.app in the Cocoa GUI window (use emacs -nw to backup to the terminal interface). All of the environment variables that I set in my bash environment seemed to be set in Emacs.
I have not tried this with Emacsformacosx. I personally prefer Emacs from Homebrew since I heard that Emacsformacosx is not compiled with some extensions that I use, such as TLS and Imagemagick ... you can compile Emacs with these extensions using brew install emacs --with-XXX .
source share