Following steps from here: http://ubuntuforums.org/showthread.php?t=1999720

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
> # Obtain latest emacs from Savannah: http://ftp.gnu.org/gnu/emacs/
> wget http://ftp.gnu.org/gnu/emacs/emacs-24.3.tar.gz 

> # Install dependencies:
> sudo apt-get install libjpeg-dev libpng-dev libgif-dev \
>   libtiff-dev libncurses-dev -y 

> # Untar the archive:
> tar xvfz emacs-24.3-rc.tar.gz

> cd emacs-24.3

> # Do not include the X-Windows system code (just CLI version)
> ./configure --without-x

> make

> sudo make install

Download source