Installing emacs24 in precise pangoling

This is specially useful in vagrant machines

  1. Install utility to add apt sources easily:

    sudo apt-get install python-software-properties
  2. Add sources that contains emacs24

    sudo add-apt-repository ppa:cassou/emacs
  3. Update the apt source list and install emacs24-nox (for emacs without X)

    sudo apt-get update; sudo apt-get install emacs24-nox