forked from map7/ansible_recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
emacs installation
Andre Vidic edited this page Jul 25, 2019
·
1 revision
Section Last updated: <2019-07-25 Thu 19:21>
- Requires packages
sudo apt-get install libxaw7-dev libxpm-dev libpng12-dev libtiff5-dev libgif-dev libjpeg8-dev libgtk2.0-dev libncurses5-dev libdbus-1-dev libxft-dev texinfo libgnutls-dev libgnutls28-dev libjpeg62-turbo-dev - Install requirements for emacs xwidgets to work
sudo apt-get install libwebkitgtk-3.0-0 libwebkitgtk-3.0-dev - Clone from git like so
git clone --depth 1 https://github.com/emacs-mirror/emacs.git - Compile (Note xwidgets may not work on your machine)
./autogen.sh ./autogen.sh git ./configure --prefix=/opt/emacs --with-xft --with-xwidgets --with-imagemagick make -j32 - Start
src/emacs - Install
sudo make install - Update alternatives to use the new emacs & set the priority to 100 so it’s automatically selected
sudo update-alternatives --install /usr/bin/emacs emacs /opt/emacs/bin/emacs 100 sudo update-alternatives --install /usr/bin/emacsclient emacsclient /opt/emacs/bin/emacsclient 100 - Configure the alternatives
sudo update-alternatives --config emacs sudo update-alternatives --config emacsclient - Manually check alternatives are correctly set
ls -al /etc/alternatives | grep emacs - Manually check bin directory is correctly set
ls -al /usr/bin | grep emacs - Start the new emacs
emacs - Start package listing and accept certificates using ‘a’
M-x package-listing - Start emacs & install use-package
M-x package-install use-package - Restart emacs & install pdf-tools
C-x b compile-pdftools (respond with Y) (also M-x pdf-tools-install then exit & restart emacs answer Y to reinstall prompt on restart) - Restart a number of times until everything is starting correctly.
(Optional fix) Create/update symlinks if they are pointing to an old emacs version
ln -s -f target symlink_name #update existing symlink