This page shows you how to compile emacs from developer version of source code on git repository. I assume you are using Ubuntu Linux.
If you have not build emacs on Linux before, you need to first install built tools and dependent libraries that emacs use. See: How to Build Emacs on Linux. Basically, just run the following first:
# install essential build tools sudo apt-get install build-essential # get all dependencies of a previous emacs version sudo apt-get build-dep emacs23
Now clone emacs from its github mirror https://github.com/mirrors/emacs
(if you've never used git before, just do:
git clone https://github.com/mirrors/emacs.git. It'll create a dir named
emacs in the current dir. 〔➤ git Tutorial〕)
cd to the dir. In the dir, there's a file named
INSTALL.REPO that tells you how to build from repository. But, basically, you just run:
./autogen.sh ./configure make bootstrap make
The whole process will take about 20 minutes.
When done, the emacs binary will be at dir
emacs/src/. You can cd to it and launch by
You can prepend the path to your shell, so next time you just type
setsid emacs to launch. Put the following line:
# prepend emacs path to environment variable PATH PATH=$HOME/git/emacs/src:$PATH # make sure the dir is correct
at bottom of your
After a few months, you can
git pull the emacs git repository to get update, then compile again.
See: Emacs: Using Eww Web Browser
For tutorials on emacs 24.4 features, see: New Features in Emacs 24.4.