#!/bin/sh # Craig Jennings # Emacs Install and Config # ensure user if [ $(id -u) -eq 0 ] then echo "Must run as user. Exiting." exit fi # Install emacs and all dependencies sudo pkg install -y emacs # everything is ultimately to run or assist Emacs sudo pkg install -y ImageMagick7 # image processing sudo pkg install -y aspell # spell checker sudo pkg install -y en-aspell # english dictionary sudo pkg install -y fd-find # faster find alternative sudo pkg install -y ffmpegthumbnailer # video thumbnailer sudo pkg install -y gnutls # gnu transport layer security sudo pkg install -y gtar # gnu version of tar sudo pkg install -y isync # manage local copy of remote IMAP folders sudo pkg install -y mediainfo # tag information for video and audio files sudo pkg install -y mpv # video player sudo pkg install -y mu # mail searching front-end (used with isync) sudo pkg install -y multimarkdown # markdown processor sudo pkg install -y pkgconf # configure compiler and linker flags sudo pkg install -y png # manipulate png files sudo pkg install -y poppler # pdf rendering library sudo pkg install -y poppler-glib # glib bindings for poppler sudo pkg install -y sdcv # utility to work with dictionaries in StarDict's format pkg install -y coreutils # emacs requires FSF's version of ls # install via https git clone --depth 1 git@cjennings.net:dotemacs.git ~/.emacs.d/ # change remote to git url cd ~/.emacs.d/ git remote remove origin git remote add origin git@cjennings.net:dotemacs.git # add the emacsd rc.d service sudo cp ../assets/emacsd /usr/local/etc/rc.d/emacsd sysrc emacsd_enable="YES"