Last week I wrote about my issue with Emacs’ visible-bell on OS X El Capitan. I figured it was about the most esoteric thing I’ve written, but it may have gotten more comments then any other post. I’m not sure if that’s good or bad…
In any case, before coming up with my work-around, I first tried rebuilding Emacs, in case the issues had been already fixed or simply re-compiling/re-linking would take care of it. That didn’t help, but this is fine time to revisit building Emacs from source on OS X.
First, you will need Xcode installed (free in the Mac App Store) to build. If you don’t have Xcode installed you’re not reading my blog anyway. However, if you just installed El Capitan, you may need to re-install the Xcode command line tools to build Emacs (or really compile anything).
Yes, it’s possibly ironic that I use Homebrew and yet build Emacs from source. However, Emacs is my #1 tool, and I want fine control over it. Think of it as building your own lightsaber.
If you do want to build from source, it’s easy:
1 2 3 4 5 6 7
1 2 3 4 5 6 7
Once you have the tools in place, you need the source:
At this point you have two choices, you can build the current
production release, 24.5, from the
emacs-24 branch, or you can build
the development version 25.0 in
master. I ran 25.0 for a bit, but
experienced random crashing, so let’s start with production:
1 2 3 4
make install it builds the
Emacs.app bundle, no actual
If you’d like to try Emacs 25.0, simple skip the
To take shiny new Emacs for a spin:
to install it:
Emacs to the Applications folder.
Or if you like command line, you can put some command line in your
command line so you can command line while you command line by adding
-nw flag to your alais:
which will open Emacs in text only mode.
Finally, if you built
emacs-24 and want to switch to
vice versa run:
Then checkout the branch you want. That removes all untracked and
ignored files from the directory. In theory one of the
invocations should do that as well, but I’ve never been able get that
to clear everything.