Upgrading Emacs to 24.5
on Ubuntu 12.04
Dump this in your terminal:
sudo apt-get install checkinstall
mkdir -p ~/src
cd ~/src
wget https://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.gz
tar xf emacs-24.5.tar.gz
cd emacs-24.5
./configure
make
sudo checkinstall
Take it a step further and install Spacemacs:
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d