Someone (in another SE answer) mentioned a feature thats only available in 26, so I guess now I gotta upgrade.
How do you install emacs 26 on macOS Sierra?
What I tried:
how install emacs 26 Mac,
brew install emacs.
Have a look at brew emacs recipe options with
brew info emacs. It has this option:
--devel Install development version 26.0.90
To replace your current emacs, run:
brew unlink emacs brew uninstall emacs brew install emacs --devel --with-modules --with-cocoa --with-gnutls \ --with-librsvg --with-mailutils --with-imagemagick@6 brew linkapps
The imagemagick@6 library and emacs devel change frequently so exclude them from automatic updates and do updates manually at convenient times:
brew pin imagemagick@6 emacs
brew linkapps is now deprecated.
You can use
EDIT: As Guilherme Salomé pointed out, now
brew cask install emacs but it doesn't allow you to download emacs 26 as of 4/1/2018.
brew cask install emacs will install version
You can though download the build you want from https://emacsformacosx.com/builds.
A current (at time of this comment) way to install the GUI version of Emacs (26.2 at this time) on macOS Mojave is with
brew cask install emacs
This will install Emacs.app package in to
/Applications and setup links. You can launch Emacs via Spotlight or from terminal as expected.
This only installs the terminal version of Emacs 26.1. If you (like me) prefer to use the GUI version of Emacs then you can't install it with
brew install emacs
This is because the people who maintain brew have found it cumbersome to maintain and test all the versions and custom options of multiple formulas. They have since then dropped support for custom options and encourage users to maintain their own taps. As others have mentioned you can use the emacs-mac version or you can also use the emacs-plus version but if you prefer to use the unedited version and with custom flags to support color-fonts, ImageMagick support and all, I suggest you use the version using the following tap homebrew-emacs-head.
brew tap daviderestivo/emacs-head brew install emacs-head --with-cocoa
Or if you prefer the emacs-head version (presently 27.x)
brew tap daviderestivo/emacs-head brew install emacs-head --HEAD --with-cocoa
MacOs has its own Emacs. In 2019 it's still 22.x. To use the last Emacs version do
brew cask install emacs- it will install the latest emacs version to
Then edit (or create if you still don't have) your
~/.bash_profile file adding a new line
alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs -nw'.
source ./bash_profileto update bash environment.
emacs -versionto ensure that you use the latest Emacs version.
This will let you use Emacs terminal version. If you want to use Emacs UI, just remove
-nw in the step