16

I've installed Emacs via Homebrew. The version that got installed is 25.3.1. It was installed as the file whose full path is /usr/local/bin/emacs. When I execute

emacs

at a Terminal window, Emacs starts inside the self-same window as a console application. How can I cause it to start as a GUI application?

The answer given here won't work, because the version of Emacs installed as /Applications/Emacs is 25.1.1 .


macOS Sierra Version 10.12.6

Evan Aad
  • 1,461
  • 1
  • 14
  • 29
  • If you don't like the end result of what other answers posted, you can just try `xemacs` instead :) – Sridhar Sarnobat Dec 18 '19 at 23:22
  • `brew install --cask emacs` installs [Emacs.app](https://emacsformacosx.com/), and `brew install emacs` installs [emacs](https://www.gnu.org/software/emacs/) without GUI into `/opt/homebrew/Cellar/emacs` – DawnSong May 12 '22 at 13:59

2 Answers2

32

According to Emacswiki "Homebrew has Emacs 26.1 as of January 2019" and "Homebrew now recommends to use the cask version".

The message that Homebrew gives is "Please try the Cask for a better-supported Cocoa version".

I tried --with-cocoa myself in February 2019 and is not supported any more.

linkapps also doesn't work any more.

Use this command to install Emacs with Cocoa.

brew cask install emacs

This works for Emacs 26.1 upwards.

The command brew cask install was changed to brew install --cask instead. You will get a warning for now, but it might lead to errors in the future. Use the following command instead.

brew install --cask emacs
ayckoster
  • 429
  • 4
  • 3
7

Did you follow the install instructions in the wiki?

http://wikemacs.org/wiki/Installing_Emacs_on_OS_X

Basically, you need to install it with cocoa, it adds the GUI support.

$ brew install emacs --with-cocoa

If you are willing to use spacemacs, then they recommend installing emacs-plus. https://github.com/syl20bnr/spacemacs

$ brew tap d12frosted/emacs-plus
$ brew install emacs-plus
$ brew linkapps emacs-plus
NoamStolero
  • 106
  • 6