summaryrefslogtreecommitdiff
path: root/user_scripts/emacs_install_config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'user_scripts/emacs_install_config.sh')
-rw-r--r--user_scripts/emacs_install_config.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/user_scripts/emacs_install_config.sh b/user_scripts/emacs_install_config.sh
new file mode 100644
index 0000000..9e2abf1
--- /dev/null
+++ b/user_scripts/emacs_install_config.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# Craig Jennings <c@cjennings.net>
+# 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"