summaryrefslogtreecommitdiff
path: root/user_scripts/emacs_install_config.sh
blob: 9e2abf137cd96449fa619f8c16a5d169952b4a8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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"