Skip to content

Instantly share code, notes, and snippets.

@metacritical
Created February 4, 2012 00:23
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 metacritical/1734003 to your computer and use it in GitHub Desktop.
Save metacritical/1734003 to your computer and use it in GitHub Desktop.
Most Perfect Emacs 24 With Fullscreen patch build for Mac OSX SnowLeopard 10.6.8+ build script.
git clone git://git.savannah.gnu.org/emacs.git
cd emacs
curl -O http://cloud.github.com/downloads/typester/emacs/feature-fullscreen.patch
patch -p1 -i feature-fullscreen.patch
cd ..
curl -O http://ftp.gnu.org/gnu/m4/m4-1.4.13.tar.gz
tar -xzvf m4-1.4.13.tar.gz
cd m4-1.4.13
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -O http://ftp.gnu.org/gnu/autoconf/autoconf-2.65.tar.gz
tar -xzvf autoconf-2.65.tar.gz
cd autoconf-2.65
./configure --prefix=/usr/local # ironic, isn't it?
make
sudo make install
cd ../emacs
# here you might want to restart your terminal session, to ensure the new autoconf is picked up and used in the rest of the script
curl -O http://ftp.gnu.org/gnu/automake/automake-1.11.tar.gz
tar xzvf automake-1.11.tar.gz
cd automake-1.11
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -O http://ftp.gnu.org/gnu/libtool/libtool-2.2.6b.tar.gz
tar xzvf libtool-2.2.6b.tar.gz
cd libtool-2.2.6b
./configure --prefix=/usr/local
make
sudo make install
cd ..
sh autogen.sh
./configure --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no --with-ns --prefix=/usr/local
make && make install
mv /Applications/Emacs.app ~/.Trash/"Emacs.app `date +%Y-%m-%d\ %H.%M.%S`"
mv nextstep/Emacs.app /Applications/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment