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