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:
- 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
- Get current emacs source (26.2)
git clone --single-branch --branch emacs-26 git://git.sv.gnu.org/emacs.git emacs26
cd emacs26
git checkout emacs-26.2
- Clean build
git clean -dxf
./autogen.sh
mkdir build
cd build
../configure --with-x-toolkit=no --prefix=$HOME
make bootstrap
make install
- 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 http://kitabi.eu/thoughts/emacs-init.el > ~/.emacs.d/init.el