Installing emacs on debian

Emacs install

I use emacs as my editor of choice, I can use others, but if I have to choose, then I choose emacs, it has always been a powerful choice that grew with the years, every time I look at it again I discover new things. I have a debian jessie (8.1) VM where I wanted to have the latest emacs, so I compiled it:

  1. Install dependencies:
    sudo aptitude update
    sudo aptitude install autoconf automake libtool texinfo build-essential xorg-dev libgtk2.0-dev libjpeg-dev libncurses5-dev libdbus-1-dev libgif-dev libtiff-dev libm17n-dev libpng-dev librsvg2-dev libotf-dev libgnutls28-dev libxml2-dev
  2. Get current emacs source (26.2)
    git clone --single-branch --branch emacs-26 git:// emacs26
    cd emacs26
    git checkout emacs-26.2
  3. Clean build
    git clean -dxf
    mkdir build
    cd build
    ../configure --with-x-toolkit=no --prefix=$HOME
    make bootstrap
    make install
  4. Ensure that my init.el is up to date
    mkdir -p ~/.emacs.d
    if [ -e "~/.emacs.d/init.el" ] ; then
      mv ~/.emacs.d/init.el ~/.emacs.d/init-$( date --iso-8601=ns ).el
    curl > ~/.emacs.d/init.el

Leave a comment

Comments are moderated. Your email address is neither published nor stored, only an md5 hash of it. Required fields are marked with *