An Emacs Build Script for macOS

Colin McLear (mclearc) has a script for building Emacs on macOS. He uses it to build Emacs on the M1 MacBook pro running Monterrey 12.0.1. I see lots of requests from people asking where they can find an Emacs binary for some particular operating system/machine. When the machine is a Mac, the most usual advice is to use Homebrew, which is a good solution but for those who want to build from scratch so that they get exactly what they want, it’s good to have a script for the build. Even if you need to adjust some of the build parameters for your use case, once you do, you can easily build updates or install Emacs on a new machine.

The script comes with some (5) patches that you may or may not want to apply. It’s easy to omit the ones you don’t want. Similarly, it’s easy to change the configure options if you want to add or delete from the set the McLear chose.

There’s a lot to be said for the strategy of writing a script to build Emacs. For some reason, I’ve never done that and always have to look up my notes to remind me of the magic incantation. With a script, you just have to run it to build a new Emacs. I’m going to take McLear’s script and adopt it for my particular environment. I can’t quite think why I haven’t done so already.

This entry was posted in General and tagged . Bookmark the permalink.