Emacs installed with homebrew only works in terminal

2k Views Asked by At

I just installed the latest Emacs with homebrew:

brew install emacs --with-cocoa

It installed successfully, but only runs in the terminal. When I installed it on another machine it starts a separate GUI window. Do I need to specify additional flags?

4

There are 4 best solutions below

1
On

If you're launching it from within the terminal application, you're more than likely running the emacs that ships with OS-X (v22, IIRC).

To launch the homebrew version, I created an alias in bash:

alias emacs='open -a /Applications/Emacs.app --args $1'

Then typing 'emacs' from the terminal launches the homebrew version.

0
On

You want aquamacs. It Just Works.

0
On

you can add it to your apps just by running the below command:

brew linkapps emacs

Doc on linkapps

Find installed formulae that provide .app-style OS X apps and symlink them into /Applications, allowing for easier access

0
On

Try this one https://github.com/railwaycat/emacs-mac-port it is not official but much better looking on OSX.