Skip to content

Instantly share code, notes, and snippets.

@guehara
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guehara/9b1038fb0753bdfcabdd to your computer and use it in GitHub Desktop.
Save guehara/9b1038fb0753bdfcabdd to your computer and use it in GitHub Desktop.
Build Emacs 24.4 on Yosemite
#!bin/sh
#
# reference from http://masutaka.net/chalow/2014-10-25-1.html
#
cd ~/src/emacs
curl -LO http://ftp.gnu.org/pub/gnu/emacs/emacs-24.4.tar.xz
curl -LO ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.4-mac-5.0.tar.gz
tar Jxvf emacs-24.4.tar.xz
tar zxvf emacs-24.4-mac-5.0.tar.gz
cd emacs-24.4
patch -p 0 < ../emacs-24.4-mac-5.0/patch-mac
cp -R ../emacs-24.4-mac-5.0/mac mac
cp ../emacs-24.4-mac-5.0/src/* src
cp ../emacs-24.4-mac-5.0/lisp/term/mac-win.el lisp/term
cp nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns mac/Emacs.app/Contents/Resources/Emacs.icns
./configure --with-mac --without-x
make
make install
cp -R mac/Emacs.app /Applications/Emacs.app
cd ..
curl -LO http://emacsformacosx.com/emacs-builds/Emacs-24.4-universal.dmg
open Emacs-24.4-universal.dmg
cp -R /Volumes/Emacs/Emacs.app/Contents/MacOS/bin-x86_64-10_9 /Applications/Emacs.app/Contents/MacOS/bin
umount /Volumes/Emacs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment